Files
solver/MbDCode/IntegratorInterface.h
Aik-Siong Koh 371b13a9e0 runVelIC
2023-06-18 01:06:39 -06:00

31 lines
855 B
C++

#pragma once
#include "Integrator.h"
//#include "BasicQuasiIntegrator.h"
namespace MbD {
class BasicQuasiIntegrator;
class IntegratorInterface : public Integrator
{
//tout hout hmin hmax tstart tend integrator
public:
void initializeGlobally() override;
virtual void preRun() = 0;
void setSystem(Solver* sys) override;
void logString(std::string& str) override;
void run() override;
int orderMax();
virtual void incrementTime(double tnew);
virtual void preFirstStep() = 0;
virtual void preStep() = 0;
virtual double suggestSmallerOrAcceptFirstStepSize(double hnew) = 0;
SystemSolver* system;
double tout = 0, hout = 0, hmin = 0, hmax = 0, tstart = 0, tend = 0;
std::shared_ptr<BasicQuasiIntegrator> integrator;
};
}