39 #include <boost/core/ignore_unused.hpp>
53 "compute the mean of each field over the domain.");
67 int nfields =
m_f->m_variables.size();
68 int spacedim =
m_f->m_graph->GetMeshDimension() +
m_f->m_numHomogeneousDir;
69 int npoints =
m_f->m_exp[0]->GetNpoints();
76 string name[3] = {
"length",
"area",
"volume"};
77 cout <<
"Domain " <<
name[spacedim - 1] <<
" : " << scale << endl;
80 for (
int i = 0; i < nfields; ++i)
83 if (
m_f->m_comm->GetRank() == 0)
85 cout <<
"Integral (variable " <<
m_f->m_variables[i]
86 <<
") : " << integral << endl;
87 cout <<
"Mean (variable " <<
m_f->m_variables[i]
88 <<
") : " << integral / scale << endl;
FieldSharedPtr m_f
Field object.
virtual void Process(po::variables_map &vm)
Write mesh to output file.
Abstract base class for processing modules.
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.