Commit 68c8793c authored by Chris Cantwell's avatar Chris Cantwell
Browse files

Merge branch 'fix/energy-time' into 'master'

Fix incorrect time output in energy filter

The energy filter currently outputs at the incorrect time interval (i.e. instead of time steps 0, 10, 20 it will output at 1, 11, 21...). This MR corrects this problem.

See merge request !412
parents fea2ac05 375766a8
......@@ -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