ABLATE Source Documentation  0.12.34
rhsFunction.hpp
1 #ifndef ABLATELIBRARY_RHSFUNCTION_HPP
2 #define ABLATELIBRARY_RHSFUNCTION_HPP
3 #include <petsc.h>
4 
5 namespace ablate::solver {
6 
7 class RHSFunction {
8  public:
16  virtual PetscErrorCode ComputeRHSFunction(PetscReal time, Vec locX, Vec F) = 0;
17 
24  virtual PetscErrorCode PreRHSFunction(TS ts, PetscReal time, bool initialStage, Vec locX) { return 0; };
25 };
26 
27 } // namespace ablate::solver
28 #endif // ABLATELIBRARY_RHSFUNCTION_HPP
Definition: rhsFunction.hpp:7
virtual PetscErrorCode ComputeRHSFunction(PetscReal time, Vec locX, Vec F)=0
virtual PetscErrorCode PreRHSFunction(TS ts, PetscReal time, bool initialStage, Vec locX)
Definition: rhsFunction.hpp:24