47 string DriverStandard::driverLookupId = LibUtilities::SessionReader::RegisterEnumValue(
"Driver",
"Standard",0);
78 time_t starttime, endtime;
81 m_equ[0]->PrintSummary(out);
85 m_equ[0]->DoInitialise();
92 if (
m_comm->GetRank() == 0)
94 CPUtime = difftime(endtime, starttime);
95 cout <<
"-------------------------------------------" << endl;
96 cout <<
"Total Computation Time = " << CPUtime <<
"s" << endl;
97 cout <<
"-------------------------------------------" << endl;
104 for(
int i = 0; i <
m_equ[0]->GetNvariables(); ++i)
109 m_equ[0]->EvaluateExactSolution(i, exactsoln,
110 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;
boost::shared_ptr< SessionReader > SessionReaderSharedPtr
virtual SOLVER_UTILS_EXPORT void v_InitObject(std::ostream &out=std::cout)
Second-stage initialisation.
virtual SOLVER_UTILS_EXPORT void v_InitObject(std::ostream &out=std::cout)
virtual SOLVER_UTILS_EXPORT void v_Execute(std::ostream &out=std::cout)
Virtual function for solve implementation.
virtual SOLVER_UTILS_EXPORT ~DriverStandard()
Destructor.
Array< OneD, EquationSystemSharedPtr > m_equ
Equation system to solve.
DriverFactory & GetDriverFactory()
LibUtilities::CommSharedPtr m_comm
Communication object.
Base class for the development of solvers.
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, tDescription pDesc="")
Register a class with the factory.