示例#1
0
文件: Output.C 项目: bobkinl/moose
bool
Output::hasOutput()
{
  // Test all the possible output formats, return true if any of them are true
  if (hasNodalVariableOutput() || hasElementalVariableOutput() ||
      hasScalarOutput() || hasPostprocessorOutput() || hasVectorPostprocessorOutput())
    return true;
  else
    return false;
}
示例#2
0
文件: Exodus.C 项目: rppawlo/moose
void
Exodus::initialSetup()
{
  // Call base class setup method
  AdvancedOutput<OversampleOutput>::initialSetup();

  // The libMesh::ExodusII_IO will fail when it is closed if the object is created but
  // nothing is written to the file. This checks that at least something will be written.
  if (!hasOutput())
    mooseError("The current settings result in nothing being output to the Exodus file.");

  // Test that some sort of variable output exists (case when all variables are disabled but input output is still enabled
  if (!hasNodalVariableOutput() && !hasElementalVariableOutput() && !hasPostprocessorOutput() && !hasScalarOutput())
    mooseError("The current settings results in only the input file and no variables being output to the Exodus file, this is not supported.");
}
示例#3
0
void
OutputBase::output()
{
  // Call the various output types, if data exists
  if (hasNodalVariableOutput())
    outputNodalVariables();

  if (hasElementalVariableOutput())
    outputElementalVariables();

  if (hasPostprocessorOutput())
    outputPostprocessors();

  if (hasScalarOutput())
    outputScalarVariables();
}