Example #1
0
void Output::
doOutputLastTimestep(Process const& process,
                     unsigned timestep,
                     const double t,
                     GlobalVector const& x)
{
    if (!shallDoOutput(timestep, _repeats_each_steps))
        doOutputAlways(process, timestep, t, x);
}
Example #2
0
File: Output.cpp Project: bilke/ogs
void Output::doOutputLastTimestep(Process const& process,
                                  const int process_id,
                                  unsigned timestep,
                                  const double t,
                                  GlobalVector const& x)
{
    if (!shallDoOutput(timestep, t))
    {
        doOutputAlways(process, process_id, timestep, t, x);
    }
#ifdef USE_INSITU
    InSituLib::CoProcess(process.getMesh(), t, timestep, true);
#endif
}
Example #3
0
File: Output.cpp Project: bilke/ogs
void Output::doOutput(Process const& process,
                      const int process_id,
                      unsigned timestep,
                      const double t,
                      GlobalVector const& x)
{
    if (shallDoOutput(timestep, t))
    {
        doOutputAlways(process, process_id, timestep, t, x);
    }
#ifdef USE_INSITU
    // Note: last time step may be output twice: here and in
    // doOutputLastTimestep() which throws a warning.
    InSituLib::CoProcess(process.getMesh(), t, timestep, false);
#endif
}