Commit 375766a8 authored by Dave Moxey's avatar Dave Moxey
Browse files

Move index to calculate energy at correct time interval

parent 6b6938c6
......@@ -46,7 +46,7 @@ namespace Nektar
const std::map<std::string, std::string> &pParams,
const bool pConstDensity)
: Filter (pSession),
m_index (0),
m_index (-1),
m_homogeneous (false),
m_planes (),
m_constDensity(pConstDensity)
......@@ -94,7 +94,7 @@ namespace Nektar
const Array<OneD, const MultiRegions::ExpListSharedPtr> &pFields,
const NekDouble &time)
{
m_index = 0;
m_index = -1;
MultiRegions::ExpListSharedPtr areaField;
ASSERTL0(pFields[0]->GetExpType() != MultiRegions::e3DH2D,
......@@ -141,6 +141,7 @@ namespace Nektar
}
m_index++;
if (m_index % m_outputFrequency > 0)
{
return;
......
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