ABLATE Source Documentation  0.12.34
iFunction.hpp
1 #ifndef ABLATELIBRARY_IFUNCTION_HPP
2 #define ABLATELIBRARY_IFUNCTION_HPP
3 #include <petsc.h>
4 namespace ablate::solver {
5 
6 class IFunction {
7  public:
8  virtual PetscErrorCode ComputeIFunction(PetscReal time, Vec locX, Vec locX_t, Vec locF) = 0;
9  virtual PetscErrorCode ComputeIJacobian(PetscReal time, Vec locX, Vec locX_t, PetscReal X_tShift, Mat Jac, Mat JacP) = 0;
10 };
11 
12 } // namespace ablate::solver
13 #endif // ABLATELIBRARY_IFUNCTION_HPP
Definition: iFunction.hpp:6