Skip to content
Snippets Groups Projects
Forked from agnumpde / dune-tectonic
145 commits behind the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
stateupdater.hh 455 B
#ifndef STATE_UPDATER_HH
#define STATE_UPDATER_HH

template <class ScalarVectorTEMPLATE, class Vector> class StateUpdater {
public:
  using ScalarVector = ScalarVectorTEMPLATE;

  void virtual nextTimeStep() = 0;
  void virtual setup(double _tau) = 0;
  void virtual solve(Vector const &velocity_field) = 0;
  void virtual extractAlpha(ScalarVector &alpha) = 0;

  std::shared_ptr<StateUpdater<ScalarVector, Vector>> virtual clone() const = 0;
};

#endif