Commit 7bd908b6 authored by Douglas Serson's avatar Douglas Serson

Apply clang format to new files

parent db91f46d
......@@ -48,8 +48,7 @@ namespace FieldUtils
ModuleKey ProcessAvgValue::className =
GetModuleFactory().RegisterCreatorFunction(
ModuleKey(eProcessModule, "avgvalue"),
ProcessAvgValue::create,
ModuleKey(eProcessModule, "avgvalue"), ProcessAvgValue::create,
"compute the average value of each field.");
ProcessAvgValue::ProcessAvgValue(FieldSharedPtr f) : ProcessModule(f)
......@@ -72,21 +71,20 @@ void ProcessAvgValue::Process(po::variables_map &vm)
// Output volume
string name[3] = {"length", "area", "volume"};
cout << "Domain " << name[spacedim-1] << " : " << scale << endl;
cout << "Domain " << name[spacedim - 1] << " : " << scale << endl;
// Calculate integral and average of each field
for(int i = 0; i < nfields; ++i)
for (int i = 0; i < nfields; ++i)
{
NekDouble integral = m_f->m_exp[0]->Integral(m_f->m_exp[i]->GetPhys());
if (m_f->m_comm->GetRank() == 0)
{
cout << "Integral (variable " << m_f->m_variables[i]
<< ") : " << integral << endl;
<< ") : " << integral << endl;
cout << "Average value (variable " << m_f->m_variables[i]
<< ") : " << integral / scale << endl;
<< ") : " << integral / scale << endl;
}
}
}
}
}
......@@ -77,7 +77,6 @@ public:
{
return eModifyExp;
}
};
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment