Commit 0b62df3b authored by Chris Cantwell's avatar Chris Cantwell Committed by Spencer Sherwin
Browse files

Revert m_checkSteps back to integer storage.

parent 52ed7aae
......@@ -654,7 +654,7 @@ namespace Nektar
m_session->LoadParameter("Time", m_time, 0.0);
m_session->LoadParameter("TimeStep", m_timestep, 0.01);
m_session->LoadParameter("NumSteps", m_steps, 0);
m_session->LoadParameter("IO_CheckSteps", m_checksteps, 0.0);
m_session->LoadParameter("IO_CheckSteps", m_checksteps, 0);
m_session->LoadParameter("IO_CheckTime", m_checktime, 0.0);
m_session->LoadParameter("FinTime", m_fintime, 0);
m_session->LoadParameter("NumQuadPointsError",
......
......@@ -465,7 +465,7 @@ namespace Nektar
/// Number of steps to take.
int m_steps;
/// Number of steps between checkpoints.
NekDouble m_checksteps;
int m_checksteps;
/// Spatial dimension (>= expansion dim).
int m_spacedim;
/// Expansion dimension.
......
......@@ -352,10 +352,10 @@ namespace Nektar
{
(*x)->Update(m_fields, m_time);
}
// Write out checkpoint files
if ((m_checksteps && step && !((step + 1) % m_checksteps)) ||
doCheckTime)
doCheckTime)
{
if(m_HomogeneousType == eHomogeneous1D)
{
......
......@@ -505,7 +505,7 @@ namespace Nektar
}
// Transform data if needed
if (fmod((n+1), m_checksteps) < fmod(n, m_checksteps))
if(!((n+1)%m_checksteps))
{
for (i = 0; i < m_nVariables; ++i)
{
......
Supports Markdown
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