CepsArray< _Type, 2U > CepsArray2
C++ array, 2 elements.
std::make_unsigned_t< CepsInt > CepsUInt
Unsigned version on CepsInt.
std::shared_ptr< DistributedHaloVector > DHVecPtr
Typedef for pointer on Distributed Halo CepsVector.
Base class for PDE solving.
Astract Problem which does not depend on time.
Base class for solving PDE with no time dependance.
AbstractStaticPdeProblem * getStaticProblem() const
Returns a pointer with the appropriate type of pb.
virtual ~AbstractStaticPdeSolver()
Destructor.
void updateAssemblers() override
Update assemblers and recompute everything is needed.
void enableErrorComputation()
Sets the comparison with analytic solution.
CepsUInt getExpectedNumberOfOutputs() const final
Number of files written.
void solve() override
Solves the whole PDE in time.
DHVecPtr getSolution() const
Returns a copy of the distributed vector containing the current solution.
virtual void output(DHVecPtr solution, CepsBool immediateWriting=true)
Prints the solution and flush the writer if immediateWriting is true.
DHVecPtr m_solution
The actual vector with the solution.
CepsBool m_writeInitialGuess
Flag for outputs.
AbstractStaticPdeSolver(AbstractStaticPdeProblem *pb)
Constructor with problem.
void setupWithParameters(InputParameters *params) override
Set attributes from input file. Parameters are passed as arguments in case one wants to use other par...
CepsArray2< CepsArray3< CepsReal > > getErrors() const
Gets the currently computed errors. First index selects absolute(0) orrelative(1) second index is L-i...