Skip to content
Snippets Groups Projects
Commit ef2d782e authored by Douglas Serson's avatar Douglas Serson Committed by Dave Moxey
Browse files

Fix FilterCheckPoint

(cherry picked from commit ece604ab)
parent 30cfceed
No related branches found
No related tags found
No related merge requests found
......@@ -63,12 +63,11 @@ FilterCheckpoint::FilterCheckpoint(
}
// OutputFrequency
it = pParams.find("OutputFrequency");
ASSERTL0(it != pParams.end(), "Missing parameter 'OutputFrequency'.");
LibUtilities::Equation equ(m_session, it->second);
m_outputFrequency = floor(equ.Evaluate());
m_outputIndex = 0;
m_index = 0;
m_fld = MemoryManager<LibUtilities::FieldIO>
::AllocateSharedPtr(pSession->GetComm());
......@@ -85,14 +84,14 @@ void FilterCheckpoint::v_Initialise(
{
m_index = 0;
m_outputIndex = 0;
v_Update(pFields, time);
}
void FilterCheckpoint::v_Update(
const Array<OneD, const MultiRegions::ExpListSharedPtr> &pFields,
const NekDouble &time)
{
m_index++;
if (m_index % m_outputFrequency > 0)
if (m_index++ % m_outputFrequency > 0)
{
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment