35 #ifndef NEKTAR_SOLVERUTILS_DRIVERPARAREAL_H
36 #define NEKTAR_SOLVERUTILS_DRIVERPARAREAL_H
123 std::ostream &out = std::cout)
override;
127 std::ostream &out = std::cout)
override;
#define SOLVER_UTILS_EXPORT
A class that contains algorithms for interpolation between pts fields, expansions and different meshe...
General purpose memory allocation routines with the ability to allocate from thread specific memory p...
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
Base class for the development of solvers.
Base class for the development of solvers.
virtual SOLVER_UTILS_EXPORT void v_Execute(std::ostream &out=std::cout) override
Virtual function for solve implementation.
static std::string driverLookupId
virtual SOLVER_UTILS_EXPORT ~DriverParareal()
Destructor.
NekDouble m_chunkTime
Time for chunks.
int m_pararealIterMax
Maximum number of parareal iteration.
int m_coarseSteps
Number of steps for the coarse solver.
static std::string className
Name of the class.
void RunCoarseSolve(const NekDouble time, const int nstep, const int iter, const Array< OneD, const Array< OneD, NekDouble >> &input, Array< OneD, Array< OneD, NekDouble >> &output)
void RunFineSolve(const NekDouble time, const int nstep, const int iter, const Array< OneD, const Array< OneD, NekDouble >> &input, Array< OneD, Array< OneD, NekDouble >> &output)
virtual SOLVER_UTILS_EXPORT void v_InitObject(std::ostream &out=std::cout) override
Second-stage initialisation.
NekDouble m_pararealToler
Parareal tolerance.
NekDouble m_coarseTimeStep
Timestep for coarse solver.
LibUtilities::SessionReaderSharedPtr m_sessionCoarse
Parareal (coarse solver) session reader object.
int m_numChunks
Number of time chunks.
static DriverSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession, const SpatialDomains::MeshGraphSharedPtr &pGraph)
Creates an instance of this class.
NekDouble m_fineTimeStep
Timestep for fine solver.
NekDouble m_totalTime
Total time integration interval.
SOLVER_UTILS_EXPORT DriverParareal(const LibUtilities::SessionReaderSharedPtr pSession, const SpatialDomains::MeshGraphSharedPtr pGraph)
Constructor.
FieldUtils::Interpolator< Array< OneD, MultiRegions::ExpListSharedPtr > > m_interp
int m_fineSteps
Number of steps for the fine solver.
SpatialDomains::MeshGraphSharedPtr m_graphCoarse
Parareal (coarse solver) MeshGraph object.
bool m_exactSolution
Using exact solution to compute error norms.
NekDouble m_coarseSolveFactor
Coarse solver time factor.
void SetPararealSessionFile(void)
Set the Parareal (coarse solver) session file.
int m_chunkRank
Rank in time.
std::shared_ptr< SessionReader > SessionReaderSharedPtr
std::shared_ptr< Driver > DriverSharedPtr
A shared pointer to a Driver object.
std::shared_ptr< MeshGraph > MeshGraphSharedPtr
The above copyright notice and this permission notice shall be included.