11#ifndef included_RK12TimeIntegrator
12#define included_RK12TimeIntegrator
16#include "AMP/time_integrators/TimeIntegrator.h"
41 std::shared_ptr<AMP::TimeIntegrator::TimeIntegratorParameters> parameters );
49 std::shared_ptr<AMP::TimeIntegrator::TimeIntegratorParameters> parameters )
51 return std::unique_ptr<AMP::TimeIntegrator::TimeIntegrator>(
59 std::shared_ptr<AMP::TimeIntegrator::TimeIntegratorParameters> parameters )
override;
67 std::shared_ptr<const AMP::TimeIntegrator::TimeIntegratorParameters> parameters )
override;
86 std::shared_ptr<AMP::LinearAlgebra::Vector> in,
87 std::shared_ptr<AMP::LinearAlgebra::Vector> out )
override;
89 std::string
type()
const override {
return "RK12"; }
138 std::shared_ptr<AMP::LinearAlgebra::Vector>
d_k1_vec;
139 std::shared_ptr<AMP::LinearAlgebra::Vector>
d_k2_vec;
140 std::shared_ptr<AMP::LinearAlgebra::Vector>
d_z_vec;
Class to manage reading/writing restart data.
int d_number_regrid_states
std::shared_ptr< AMP::LinearAlgebra::Vector > d_z_vec
void updateSolution(void) override
double getNextDt(const bool good_solution) override
RK12TimeIntegrator(int64_t fid, AMP::IO::RestartManager *manager)
Read restart data to file.
std::shared_ptr< AMP::LinearAlgebra::Vector > d_k1_vec
RK12TimeIntegrator(std::shared_ptr< AMP::TimeIntegrator::TimeIntegratorParameters > parameters)
std::string type() const override
Return the name of the TimeIntegrator.
int advanceSolution(const double dt, const bool first_step, std::shared_ptr< AMP::LinearAlgebra::Vector > in, std::shared_ptr< AMP::LinearAlgebra::Vector > out) override
Integrate through the specified time increment.
void initialize(std::shared_ptr< AMP::TimeIntegrator::TimeIntegratorParameters > parameters) override
static std::unique_ptr< AMP::TimeIntegrator::TimeIntegrator > createTimeIntegrator(std::shared_ptr< AMP::TimeIntegrator::TimeIntegratorParameters > parameters)
void reset(std::shared_ptr< const AMP::TimeIntegrator::TimeIntegratorParameters > parameters) override
void writeRestart(int64_t fid) const override
Write restart data to file.
std::shared_ptr< AMP::LinearAlgebra::Vector > d_k2_vec
void getFromInput(std::shared_ptr< AMP::Database > input_db)
bool checkNewSolution(void) override
std::shared_ptr< AMP::LinearAlgebra::Vector > d_new_solution
void registerChildObjects(AMP::IO::RestartManager *manager) const override
Register any child objects.
Abstract base class for time integration.
std::shared_ptr< AMP::TimeIntegrator::TimeIntegrator > shared_ptr
Convience typedef.