39 #include <boost/core/ignore_unused.hpp> 50 ModuleKey ProcessPrintFldNorms::className =
53 ProcessPrintFldNorms::create,
54 "Print L2 and LInf norms to stdout.");
66 boost::ignore_unused(vm);
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;
std::shared_ptr< Field > FieldSharedPtr
std::pair< ModuleType, std::string > ModuleKey
virtual void Process(po::variables_map &vm)
virtual ~ProcessPrintFldNorms()
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
Abstract base class for processing modules.
ModuleFactory & GetModuleFactory()
FieldSharedPtr m_f
Field object.