Ejemplo n.º 1
0
void
OutputWarehouse::outputStep(ExecFlagType type)
{
  if (_force_output)
    type = EXEC_FORCED;

  for (std::vector<Output *>::const_iterator it = _all_objects.begin(); it != _all_objects.end(); ++it)
    (*it)->outputStep(type);

  /**
   * This is one of three locations where we explicitly flush the output buffers during a simulation:
   * PetscOutput::petscNonlinearOutput()
   * PetscOutput::petscLinearOutput()
   * OutputWarehouse::outputStep()
   *
   * All other Console output _should_ be using newlines to avoid covering buffer errors
   * and to avoid excessive I/O
   */
  flushConsoleBuffer();

  // Reset force output flag
  _force_output = false;
}
Ejemplo n.º 2
0
void
OutputWarehouse::outputStep(ExecFlagType type)
{
  if (_force_output)
    type = EXEC_FORCED;

  for (const auto & obj : _all_objects)
    obj->outputStep(type);

  /**
   * This is one of three locations where we explicitly flush the output buffers during a simulation:
   * PetscOutput::petscNonlinearOutput()
   * PetscOutput::petscLinearOutput()
   * OutputWarehouse::outputStep()
   *
   * All other Console output _should_ be using newlines to avoid covering buffer errors
   * and to avoid excessive I/O
   */
  flushConsoleBuffer();

  // Reset force output flag
  _force_output = false;
}