39 #include <boost/core/ignore_unused.hpp>
50 ModuleKey ProcessPrintFldNorms::className =
53 ProcessPrintFldNorms::create,
54 "Print L2 and LInf norms to stdout.");
69 if (
m_f->m_exp[0]->GetNumElmts() == 0)
75 for (
int j = 0; j <
m_f->m_exp.size(); ++j)
80 if (
m_f->m_comm->TreatAsRankZero())
82 cout <<
"L 2 error (variable " <<
m_f->m_variables[j]
83 <<
") : " << L2 << endl;
84 cout <<
"L inf error (variable " <<
m_f->m_variables[j]
85 <<
") : " << LInf << endl;
FieldSharedPtr m_f
Field object.
Abstract base class for processing modules.
virtual void Process(po::variables_map &vm)
virtual ~ProcessPrintFldNorms()
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
std::shared_ptr< Field > FieldSharedPtr
std::pair< ModuleType, std::string > ModuleKey
ModuleFactory & GetModuleFactory()
The above copyright notice and this permission notice shall be included.