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