50 ModuleKey ProcessPrintFldNorms::className =
53 ProcessPrintFldNorms::create,
54 "Print L2 and LInf norms to stdout.");
69 if(
m_f->m_comm->TreatAsRankZero())
71 cout <<
"ProcessPrintFldNorms: Printing norms..." << endl;
76 for(
int j = 0; j <
m_f->m_exp.size(); ++j)
78 m_f->m_exp[j]->BwdTrans(
m_f->m_exp[j]->GetCoeffs(),
79 m_f->m_exp[j]->UpdatePhys());
83 cout <<
"L 2 error (variable " <<
m_f->m_session->GetVariable(j)
84 <<
") : " << L2 << endl;
85 cout <<
"L inf error (variable " <<
m_f->m_session->GetVariable(j)
86 <<
") : " << 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.