76 time_t starttime, endtime;
79 m_equ[0]->PrintSummary(out);
83 m_equ[0]->DoInitialise();
90 if (
m_comm->GetRank() == 0)
92 CPUtime = difftime(endtime, starttime);
93 cout <<
"-------------------------------------------" << endl;
94 cout <<
"Total Computation Time = " << CPUtime <<
"s" << endl;
95 cout <<
"-------------------------------------------" << endl;
102 for(
int i = 0; i <
m_equ[0]->GetNvariables(); ++i)
107 m_equ[0]->EvaluateExactSolution(i, exactsoln,
108 m_equ[0]->GetFinalTime());
113 if (
m_comm->GetRank() == 0)
115 out <<
"L 2 error (variable " <<
m_equ[0]->GetVariable(i)
116 <<
") : " << vL2Error << endl;
117 out <<
"L inf error (variable " <<
m_equ[0]->GetVariable(i)
118 <<
") : " << vLinfError << endl;
static std::string className
Name of the class.
static std::string RegisterEnumValue(std::string pEnum, std::string pString, int pEnumValue)
Registers an enumeration value.
virtual SOLVER_UTILS_EXPORT void v_InitObject(ostream &out=cout)
virtual SOLVER_UTILS_EXPORT void v_Execute(ostream &out=cout)
Virtual function for solve implementation.
boost::shared_ptr< SessionReader > SessionReaderSharedPtr
virtual SOLVER_UTILS_EXPORT void v_InitObject(ostream &out=cout)
Second-stage initialisation.
SOLVER_UTILS_EXPORT DriverStandard(const LibUtilities::SessionReaderSharedPtr pSession)
Constructor.
static std::string driverLookupId
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.
static DriverSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession)
Creates an instance of this class.
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, tDescription pDesc="")
Register a class with the factory.