CepsArray< _Type, 2U > CepsArray2
C++ array, 2 elements.
float CepsReal
Need single precision floating point.
std::shared_ptr< DistributedHaloVector > DHVecPtr
Typedef for pointer on Distributed Halo CepsVector.
Base class for creating PDEs to solve.
Astract Problem which does depend on time.
void setTimes(CepsReal tStart, CepsReal tEnd, CepsReal dt)
Define the start and end times, also time step.
CepsReal m_pdeEndTime
End time.
CepsReal m_pdeTimeStep
Time Step for the PDE.
CepsArray2< CepsArray3< CepsArray3< CepsReal > > > getErrors() const
Get the errors.
virtual void getInitialCondition(DHVecPtr v) const
Build vector from function pointed by m_initialCondition.
CepsReal getTimeStep() const
pde time step
AbstractTimedPdeProblem(Geometry *geom, InputParameters *params=nullptr)
Constructor with geometry and optional parameters.
static constexpr CepsBool isStatic
Flag for static/timed.
CepsReal m_pdeStartTime
Initial time.
ScalarFunction * m_initialCondition
Function defining the initial condition, which is 0 if pointer is null.
void setupWithParameters(InputParameters *params) override
Set attributes from input file. Parameters are passed as arguments in case one wants to use other par...
void setSnapshotTime(CepsReal st)
Periodicity of outputs, in time units.
CepsReal getEndTime() const override
pde end time
void initializeEquation() override
Initializes equations (unknowns, bc, source term) and creates the spatial discretization This method ...
CepsReal getStartTime() const override
pde start time
CepsReal m_pdeSnapshotTime
Periodicity of outputs.
CepsBool canComputeErrorAtTime(CepsReal t) const
Tells if either analytic solution or reference solution has a snapshot at time t.
CepsReal getSnapshotTime() const override
Periodicity of outputs, in time units.
CepsArray2< CepsArray3< CepsArray3< CepsReal > > > m_errors
Will store Linf, L1 and L2 relative errors.
virtual void defineInitialCondition()
Sets the pointer on function for initial guess. Here it is set to nullptr, so it will be 0.
Encapsulates all the geometrical data.
function caller : abstract base, only contains an variadic operator()