Пример #1
0
void
AdvancedOutput<OversampleOutput>::outputStep(const ExecFlagType & type)
{
  // Output is not allowed
  if (!_allow_output && type != EXEC_FORCED)
    return;

  // If recovering disable output of initial condition, it was already output
  if (type == EXEC_INITIAL && _app.isRecovering())
    return;

  // Do nothing if the filename is not correct for output
  if (!checkFilename())
    return;

  // Return if the current output is not on the desired interval
  if (type != EXEC_FINAL && !onInterval())
    return;

  // Perform oversample solution projection
  updateOversample();

  // Call output methods for various types
  output(type);
}
Пример #2
0
void
BasicOutput<OversampleOutput>::outputStep(const ExecFlagType & type)
{
  // Force the output
  if (type == EXEC_FORCED)
    output(type);

  // If recovering disable output of initial condition, it was already output
  if (type == EXEC_INITIAL && _app.isRecovering())
    return;

  // Return if the current output is not on the desired interval
  if (type != EXEC_FINAL && !onInterval())
    return;

  // Call the output method (this has the file checking built in b/c OversampleOutput is a FileOutput)
  if (shouldOutput(type))
  {
    updateOversample();
    output(type);
  }
}