43 int main(
int argc, 
char *argv[])
 
   47     session = LibUtilities::SessionReader::CreateInstance(argc, argv);
 
   49     time_t starttime, endtime;
 
   60                 session->GetSolverInfo(
"EQTYPE"), session);
 
   64         ASSERTL0(e == -1, 
"No such solver class defined.");
 
   69     equ->PrintSummary(cout);
 
   77     CPUtime = (1.0/60.0/60.0)*difftime(endtime,starttime);
 
   85     cout << 
"-------------------------------------------" << endl;
 
   86     cout << 
"Total Computation Time = " << CPUtime << 
" hr." << endl;
 
   89     for(
int i = 0; i < equ->GetNvariables(); ++i)
 
   91         cout << 
"L 2 error (variable " << equ->GetVariable(i)  << 
"): " << equ->L2Error(i,
true) << endl;
 
   92         cout << 
"L inf error (variable " << equ->GetVariable(i)  << 
"): " << equ->LinfError(i) << endl;
 
#define ASSERTL0(condition, msg)
 
tBaseSharedPtr CreateInstance(tKey idKey BOOST_PP_COMMA_IF(MAX_PARAM) BOOST_PP_ENUM_BINARY_PARAMS(MAX_PARAM, tParam, x))
Create an instance of the class referred to by idKey. 
 
int main(int argc, char *argv[])
 
boost::shared_ptr< SessionReader > SessionReaderSharedPtr
 
boost::shared_ptr< EquationSystem > EquationSystemSharedPtr
A shared pointer to an EquationSystem object. 
 
EquationSystemFactory & GetEquationSystemFactory()