42 int main(
int argc,
char *argv[])
46 session = LibUtilities::SessionReader::CreateInstance(argc, argv);
49 graph = SpatialDomains::MeshGraph::Read(session);
51 time_t starttime, endtime;
62 session->GetSolverInfo(
"EQTYPE"), session, graph);
66 ASSERTL0(e == -1,
"No such solver class defined.");
71 equ->PrintSummary(cout);
79 CPUtime = (1.0/60.0/60.0)*difftime(endtime,starttime);
87 cout <<
"-------------------------------------------" << endl;
88 cout <<
"Total Computation Time = " << CPUtime <<
" hr." << endl;
91 for(
int i = 0; i < equ->GetNvariables(); ++i)
93 cout <<
"L 2 error (variable " << equ->GetVariable(i) <<
"): " << equ->L2Error(i,
true) << endl;
94 cout <<
"L inf error (variable " << equ->GetVariable(i) <<
"): " << equ->LinfError(i) << endl;
#define ASSERTL0(condition, msg)
std::shared_ptr< MeshGraph > MeshGraphSharedPtr
int main(int argc, char *argv[])
tBaseSharedPtr CreateInstance(tKey idKey, tParam... args)
Create an instance of the class referred to by idKey.
EquationSystemFactory & GetEquationSystemFactory()
std::shared_ptr< SessionReader > SessionReaderSharedPtr
std::shared_ptr< EquationSystem > EquationSystemSharedPtr
A shared pointer to an EquationSystem object.