47 "Standard", DriverStandard::create);
48 string DriverStandard::driverLookupId =
49 LibUtilities::SessionReader::RegisterEnumValue(
"Driver",
"Standard", 0);
54 DriverStandard::DriverStandard(
82 m_equ[0]->PrintSummary(out);
86 m_equ[0]->DoInitialise();
93 if (
m_comm->GetRank() == 0)
95 CPUtime = timer.
Elapsed().count();
96 cout <<
"-------------------------------------------" << endl;
97 cout <<
"Total Computation Time = " << CPUtime <<
"s" << endl;
98 cout <<
"-------------------------------------------" << endl;
105 for (
int i = 0; i <
m_equ[0]->GetNvariables(); ++i)
110 m_equ[0]->EvaluateExactSolution(i, exactsoln,
m_equ[0]->GetFinalTime());
115 if (
m_comm->GetRank() == 0)
117 out <<
"L 2 error (variable " <<
m_equ[0]->GetVariable(i)
118 <<
") : " << vL2Error << endl;
119 out <<
"L inf error (variable " <<
m_equ[0]->GetVariable(i)
120 <<
") : " << vLinfError << endl;
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
Base class for the development of solvers.
virtual SOLVER_UTILS_EXPORT void v_InitObject(std::ostream &out=std::cout)
LibUtilities::CommSharedPtr m_comm
Communication object.
Array< OneD, EquationSystemSharedPtr > m_equ
Equation system to solve.
virtual SOLVER_UTILS_EXPORT void v_InitObject(std::ostream &out=std::cout) override
Second-stage initialisation.
virtual SOLVER_UTILS_EXPORT void v_Execute(std::ostream &out=std::cout) override
Virtual function for solve implementation.
virtual SOLVER_UTILS_EXPORT ~DriverStandard()
Destructor.
std::shared_ptr< SessionReader > SessionReaderSharedPtr
DriverFactory & GetDriverFactory()
std::shared_ptr< MeshGraph > MeshGraphSharedPtr
The above copyright notice and this permission notice shall be included.