ABLATE Source Documentation  0.12.34
physicsTimeStepFunction.hpp
1 #ifndef ABLATELIBRARY_PHYSICSTIMESTEPFUNCTION_HPP
2 #define ABLATELIBRARY_PHYSICSTIMESTEPFUNCTION_HPP
3 #include <petsc.h>
4 #include <map>
5 namespace ablate::solver {
6 
8  public:
12  virtual double ComputePhysicsTimeStep(TS) = 0;
13 
17  virtual std::map<std::string, double> ComputePhysicsTimeSteps(TS ts) { return {{"", ComputePhysicsTimeStep(ts)}}; }
18 };
19 
20 } // namespace ablate::solver
21 #endif // ABLATELIBRARY_PHYSICSTIMESTEPFUNCTION_HPP
Definition: physicsTimeStepFunction.hpp:7
virtual std::map< std::string, double > ComputePhysicsTimeSteps(TS ts)
Definition: physicsTimeStepFunction.hpp:17
virtual double ComputePhysicsTimeStep(TS)=0