76 m_equ[0]->PrintSummary(out);
80 m_equ[0]->DoInitialise();
87 if (
m_comm->GetRank() == 0)
89 CPUtime = timer.
Elapsed().count();
90 cout <<
"-------------------------------------------" << endl;
91 cout <<
"Total Computation Time = " << CPUtime <<
"s" << endl;
92 cout <<
"-------------------------------------------" << endl;
100 for (
int i = 0; i <
m_equ[0]->GetNvariables(); ++i)
105 m_equ[0]->EvaluateExactSolution(i, exactsoln,
m_equ[0]->GetTime());
110 if (
m_comm->GetRank() == 0)
112 out <<
"L 2 error (variable " <<
m_equ[0]->GetVariable(i)
113 <<
") : " << vL2Error << endl;
114 out <<
"L inf error (variable " <<
m_equ[0]->GetVariable(i)
115 <<
") : " << vLinfError << endl;
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
static std::string RegisterEnumValue(std::string pEnum, std::string pString, int pEnumValue)
Registers an enumeration value.
Base class for the development of solvers.
virtual SOLVER_UTILS_EXPORT void v_InitObject(std::ostream &out=std::cout)
Virtual function for initialisation implementation.
LibUtilities::CommSharedPtr m_comm
Communication object.
Array< OneD, EquationSystemSharedPtr > m_equ
Equation system to solve.
static std::string className
Name of the class.
SOLVER_UTILS_EXPORT void v_InitObject(std::ostream &out=std::cout) override
Virtual function for initialisation implementation.
SOLVER_UTILS_EXPORT void v_Execute(std::ostream &out=std::cout) override
Virtual function for solve implementation.
SOLVER_UTILS_EXPORT DriverStandard(const LibUtilities::SessionReaderSharedPtr pSession, const SpatialDomains::MeshGraphSharedPtr pGraph)
Constructor.
static std::string driverLookupId
static DriverSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession, const SpatialDomains::MeshGraphSharedPtr &pGraph)
Creates an instance of this class.
std::shared_ptr< SessionReader > SessionReaderSharedPtr
DriverFactory & GetDriverFactory()
std::shared_ptr< MeshGraph > MeshGraphSharedPtr