Chombo + EB
3.0
|
#include <iostream>
#include <string>
#include "BaseNamespaceHeader.H"
#include "BaseNamespaceFooter.H"
Go to the source code of this file.
Macros | |
#define | _PARSTREAM_H_ |
Functions | |
std::ostream & | pout () |
Use this in place of std::cout for program output. More... | |
void | setPoutBaseName (const std::string &a_Name) |
Changes the base part of the filename for pout() files. More... | |
const std::string & | poutFileName () |
Accesses the filename for the local pout() file. More... | |
#define _PARSTREAM_H_ |
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 IFData< dim >::BrentRootFinder(), GMRESSolver< T >::BuildGMRESSoln(), ComputeCutCellMoments< dim >::computeMoments(), GMRESSolver< T >::CycleGMRES(), CutCellMoments< GLOBALDIM >::dump(), ComputeCutCellMoments< dim >::dump(), PetscSolver< LevelData< FArrayBox > >::getNNZPerRow(), LSProblem< dim >::invertNormalEq(), BaseIVFAB< Real >::linearIn(), BaseIVFAB< Real >::linearOut(), AMRTGA< T >::oneStep(), LayoutIndex::output(), LSProblem< dim >::outputBounds(), LSProblem< dim >::outputMatrix(), LSProblem< dim >::outputRhs(), LSProblem< dim >::outputUnknowns(), IndexTM< Real, GLOBALDIM >::p(), IntVectSet::p(), ComputeCutCellMoments< dim >::refine(), AMRMultiGrid< LevelData< T > >::relaxOnlyHomogeneous(), AMRTGA< T >::setMu(), BaseIVFAB< Real >::size(), MiniIFFAB< Real >::size(), BaseIFFAB< FaceStencil >::size(), CutCellMoments< GLOBALDIM >::sliceResidual(), BiCGStabSolver< LevelData< T > >::solve(), RelaxSolver< T >::solve(), GMRESSolver< T >::solve(), MultiGrid< T >::solve(), AMRTGA< T >::solveHelm(), BaseLevelHeatSolver< LevelData< FArrayBox >, FluxBox, LevelFluxRegister >::solveHelm(), AMRMultiGrid< LevelData< T > >::solveNoInitResid(), BaseFab< Real >::testBoxAndComp(), BoxLayoutData< EBFluxFAB >::unpackReceivesToMe_append(), GMRESSolver< T >::UpdateGMRESHessenberg(), and write().
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().