parstream.H File Reference

#include <iostream>
#include <string>
#include "BaseNamespaceHeader.H"
#include "BaseNamespaceFooter.H"

Include dependency graph for parstream.H:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


std::ostream & pout ()
 Use this in place of std::cout for program output.
void setPoutBaseName (const std::string &a_Name)
 Changes the base part of the filename for pout() files.
const std::string & poutFileName ()
 Accesses the filename for the local pout() file.

Function Documentation

std::ostream& pout (  ) 

Use this in place of std::cout for program output.

Replaces std::cout in most of the Chombo code. In serial this just returns std::cout. In parallel, this creates a separate file for each proc called <basename>.n where n is the procID and <basename> defaults to "pout" but can be set by calling setPoutBaseName(). Output is then directed to these files. This keeps the output from different processors from getting all jumbled up. If you want fewer files, you can do setenv CH_OUTPUT_INTERVAL nproc and it will only output every nproc processors pout.n files (where nnproc == 0).

Referenced by RootSolver::Brent(), IFData< dim >::BrentRootFinder(), GMRESSolver< T >::BuildGMRESSoln(), ComputeCutCellMoments< dim >::computeMoments(), MinimalCCCM< dim >::computeMomentsRecursively(), GMRESSolver< T >::CycleGMRES(), MinimalCCCM< dim >::dump(), CutCellMoments< dim >::dump(), ComputeCutCellMoments< dim >::dump(), SphereTree::findNode(), RefCountedPtr< T, OP >::freeMem(), AMRMultiGrid< T >::getInfo(), IndexedMoments< Dim, P >::getMoment(), LSProblem< dim >::invertNormalEq(), PetscSolver< LevelData< FArrayBox > >::ksp_monitor_pout(), BaseIVFAB< T >::linearIn(), IVSFAB< T >::linearOut(), BaseIVFAB< T >::linearOut(), AMRTGA< T >::oneStep(), RefCountedPtr< T, OP >::operator T *(), RefCountedPtr< T, OP >::operator=(), LayoutIndex::output(), LSProblem< dim >::outputBounds(), LSProblem< dim >::outputMatrix(), LSProblem< dim >::outputRhs(), LSProblem< dim >::outputUnknowns(), IntVectSet::p(), IndexTM< T, N >::p(), BlockBaseRegister< T >::print(), BlockBaseRegister< T >::printRegisters(), RefCountedPtr< T, OP >::RefCountedPtr(), RefCountedPtr< T, OP >::refDown(), ComputeCutCellMoments< dim >::refine(), RefCountedPtr< T, OP >::refUp(), AMRMultiGrid< T >::relaxOnlyHomogeneous(), TupleKeyMap<, ValueT >::report(), AMRTGA< T >::setMu(), MiniIFFAB< T >::size(), BaseIVFAB< T >::size(), BaseIFFAB< T >::size(), CutCellMoments< dim >::sliceResidual(), RelaxSolver< T >::solve(), MultiGrid< T >::solve(), GMRESSolver< T >::solve(), FASMultiGrid< T >::solve(), BiCGStabSolver< T >::solve(), BaseLevelHeatSolver< LevelData< FArrayBox >, FluxBox, LevelFluxRegister >::solveHelm(), AMRTGA< T >::solveHelm(), AMRFASMultiGrid< T >::solveNoInit(), AMRMultiGrid< T >::solveNoInitResid(), IrregNode::spout(), IndexedMoments< Dim, P >::spout(), BaseFab< T >::testBoxAndComp(), GMRESSolver< T >::UpdateGMRESHessenberg(), BaseIFFAB< T >::useThisFace(), write(), and WriteMultiData< T >::writeData().

void setPoutBaseName ( const std::string &  a_Name  ) 

Changes the base part of the filename for pout() files.

When in parallel, changes the base name of the pout() files. If pout() has already been called, it closes the current output file and opens a new one (unless the name is the same, in which case it does nothing). In serial, ignores the argument and does nothing.

const std::string& poutFileName (  ) 

Accesses the filename for the local pout() file.

Returns the name used for the local pout() file. In parallel this is "<pout_basename>.<procID>", where <pout_basename> defaults to "pout" and can be modified by calling setPoutBaseName(), and <procID> is the local proc number. In serial, this always returns the string "cout". It is an error (exit code 111) to call this in parallel before MPI_Initialize().

Generated on Wed Jul 18 03:25:53 2018 for Chombo + EB + MF by  doxygen 1.5.5