コード例 #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
ファイル: OutputBase.C プロジェクト: WilkAndy/moose
void
OutputBase::output()
{
  // Call the various output types, if data exists
  if (hasNodalVariableOutput())
    outputNodalVariables();

  if (hasElementalVariableOutput())
    outputElementalVariables();

  if (hasPostprocessorOutput())
    outputPostprocessors();

  if (hasScalarOutput())
    outputScalarVariables();
}
コード例 #3
0
ファイル: Exodus.C プロジェクト: FHilty/moose
void
Exodus::initialSetup()
{
  // Call base class setup method
  AdvancedOutput::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.");
}