50 ModuleKey ProcessPrintFldNorms::className =
53 ProcessPrintFldNorms::create,
54 "Print L2 and LInf norms to stdout.");
69 cout <<
"ProcessPrintFldNorms: Printing norms" << endl;
73 for(
int j = 0; j <
m_f->m_exp.size(); ++j)
75 m_f->m_exp[j]->BwdTrans(
m_f->m_exp[j]->GetCoeffs(),
76 m_f->m_exp[j]->UpdatePhys());
80 cout <<
"L 2 error (variable " <<
m_f->m_session->GetVariable(j)
81 <<
") : " << L2 << endl;
82 cout <<
"L inf error (variable " <<
m_f->m_session->GetVariable(j)
83 <<
") : " << LInf << endl;
pair< ModuleType, string > ModuleKey
FieldSharedPtr m_f
Field object.
boost::shared_ptr< Field > FieldSharedPtr
virtual ~ProcessPrintFldNorms()
ModuleFactory & GetModuleFactory()
Abstract base class for processing modules.
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, tDescription pDesc="")
Register a class with the factory.