Chombo + EB  3.0
Static Public Member Functions | Static Public Attributes | Static Protected Attributes | List of all members
MayDay Class Reference

Error-reporting Functions. More...

#include <MayDay.H>

Static Public Member Functions

static void Error (const char *const a_msg=m_nullString, int m_exitCode=CH_DEFAULT_ERROR_CODE)
 Print out message to cerr and exit with the specified exit code. More...
 
static void Abort (const char *const a_msg=m_nullString)
 Print out message to cerr and exit via abort() (if serial) or MPI_Abort() (if parallel). More...
 
static void Warning (const char *const a_msg=m_nullString)
 Print out message to cerr and continue. More...
 

Static Public Attributes

static bool s_debugSpew
 
static const char *const version
 

Static Protected Attributes

static const char *const m_nullString
 A null string used as a default argument by the other member functions. More...
 

Detailed Description

Error-reporting Functions.

This class consists entirely of static error-reporting functions that are used throughout the MayDay implementation together with a version string. In the best of all possible worlds we'd use a namespace, but we aren't there, yet :-) Note that all the output functions add a terminating exclamation mark, so there is no need to add any punction to sentences that get output explicitly.

Member Function Documentation

static void MayDay::Error ( const char *const  a_msg = m_nullString,
int  m_exitCode = CH_DEFAULT_ERROR_CODE 
)
static

Print out message to cerr and exit with the specified exit code.

Referenced by List< T >::addAfter(), List< T >::addBefore(), LayoutData< T >::allocate(), BoxLayoutData< T >::allocateGhostVector(), AMRTGA< T >::AMRTGA(), EBPatchAdvect::artificialViscosityCoefficient(), BackwardEuler::BackwardEuler(), BaseEBCellFAB< Real >::BaseEBCellFAB(), BaseEBCellFactory< T >::BaseEBCellFactory(), BaseEBFaceFAB< Real >::BaseEBFaceFAB(), BaseIFFAB< FaceStencil >::BaseIFFAB(), BaseIFFactory< T >::BaseIFFactory(), BaseIVFAB< Real >::BaseIVFAB(), BaseIVFactory< T >::BaseIVFactory(), BaseLevelHeatSolver< LevelData< FArrayBox >, FluxBox, LevelFluxRegister >::BaseLevelHeatSolver(), BaseBCValue::beta(), blockLocalOffsets(), blockRead(), blockWrite(), AdvectPhysics::bulkModulusIndex(), EBPatchAdvect::bulkModulusIndex(), AMRMultiGrid< T >::computeAMRResidual(), ComputeCutCellMoments< dim >::computeRhs(), BaseEBCellFAB< T >::copy(), List< T >::copy(), CopyIterator::CopyIterator(), LevelData< T >::copyTo(), Correct1D2D::Correct1D2D(), CoveredFaceFAB::CoveredFaceFAB(), CoveredFaceIterator::CoveredFaceIterator(), PetscSolver< T >::create_mat_vec(), BaseEBCellFAB< Real >::dataPtr(), BaseEBFaceFAB< Real >::dataPtr(), BaseEBCellFAB< Real >::dataType(), BaseEBFaceFAB< Real >::dataType(), LevelData< T >::define(), BoxLayoutData< T >::define(), BaseFab< T >::define(), BaseFab< T >::degenerate(), AdvectPhysics::densityIndex(), TGAHelmOp< LevelData< FArrayBox > >::diagonalScale(), EBAMRGodunov::EBAMRGodunov(), EBAMRGodunovFactory::EBAMRGodunovFactory(), EBAMRPoissonOp::EBAMRPoissonOp(), EBAMRPoissonOpFactory::EBAMRPoissonOpFactory(), EBBackwardEuler::EBBackwardEuler(), EBCellFAB::EBCellFAB(), EBCellFactory::EBCellFactory(), EBCFCopy::EBCFCopy(), EBCFData::EBCFData(), EBCoarseAverage::EBCoarseAverage(), EBCoarsen::EBCoarsen(), EBCoarToCoarRedist::EBCoarToCoarRedist(), EBCoarToFineRedist::EBCoarToFineRedist(), EBConductivityOp::EBConductivityOp(), EBConductivityOpFactory::EBConductivityOpFactory(), EBConstantCFInterp::EBConstantCFInterp(), EBFaceFAB::EBFaceFAB(), EBFaceFactory::EBFaceFactory(), EBFastFR::EBFastFR(), EBFineToCoarRedist::EBFineToCoarRedist(), EBFluxFAB::EBFluxFAB(), EBFluxRegister::EBFluxRegister(), EBGraphFactory::EBGraphFactory(), EBGraphImplem::EBGraphImplem(), EBIndexSpace::EBIndexSpace(), EBISLevel::EBISLevel(), EBLevelAdvect::EBLevelAdvect(), EBLevelGodunov::EBLevelGodunov(), EBLevelRedist::EBLevelRedist(), EBMGAverage::EBMGAverage(), EBMGInterp::EBMGInterp(), EBPatchAdvect::EBPatchAdvect(), EBPatchAdvectFactory::EBPatchAdvectFactory(), EBPoissonOp::EBPoissonOp(), EBPoissonOpFactory::EBPoissonOpFactory(), EBPWLFillPatch::EBPWLFillPatch(), EBPWLFineInterp::EBPWLFineInterp(), EBQuadCFInterp::EBQuadCFInterp(), EBStencil::EBStencil(), EBStenVarCoef::EBStenVarCoef(), EBTensorCFInterp::EBTensorCFInterp(), EBViscousTensorOp::EBViscousTensorOp(), EBViscousTensorOpFactory::EBViscousTensorOpFactory(), EBPatchAdvect::floorConserved(), FourthOrderFineInterp::FourthOrderFineInterp(), FourthOrderInterpStencil::FourthOrderInterpStencil(), FourthOrderPatchInterp::FourthOrderPatchInterp(), BaseEBBC::getEBFlux(), NeumannViscousTensorEBBC::getEBFlux(), ViscousBaseDomainBC::getFaceGradPhi(), ViscousBaseDomainBC::getFaceVel(), EBPatchAdvect::getFlux(), MiniIFFAB< T >::getIndex(), BaseDomainBC::getInhomFaceFlux(), EBPatchAdvect::getMaxWaveSpeed(), H5Type(), TGAHelmOp< LevelData< FArrayBox > >::identityCoef(), IndexTM< T, N >::IndexTM(), CoefficientInterpolator< LevelData_, SolutionLevelData_ >::interpolate(), CoefficientInterpolator< LevelData_, SolutionLevelData_ >::interpolatePrime(), LSProblem< dim >::invertNormalEq(), IrregFAB::IrregFAB(), IrregFABFactory::IrregFABFactory(), BaseDomainBC::isDirichletDom(), IVSFAB< T >::IVSFAB(), IVSFABFactory< T >::IVSFABFactory(), LevelData< T >::LevelData(), IVSFAB< T >::linearIn(), GeometryService::makeGrids(), MiniIFFAB< Real >::MiniIFFAB(), MiniIVFAB< Real >::MiniIVFAB(), MultiGrid< T >::MultiGrid(), MultilevelLinearOp< T >::norm(), BaseEBCellFAB< Real >::offset(), BaseEBFaceFAB< Real >::offset(), BaseIVFAB< Real >::offset(), BaseEBCellFAB< T >::operator()(), RefCountedPtr< T >::operator*(), RefCountedPtr< T >::operator->(), IrregFABFactory::operator=(), EBCellFactory::operator=(), EBFaceFactory::operator=(), BaseEBCellFactory< T >::operator=(), CoveredFaceIterator::operator=(), EBAMRGodunovFactory::operator=(), EBConstantCFInterp::operator=(), BaseIFFactory< T >::operator=(), BaseIVFactory< T >::operator=(), CoveredFaceFAB::operator=(), FourthOrderInterpStencil::operator=(), BackwardEuler::operator=(), Correct1D2D::operator=(), EBBackwardEuler::operator=(), FourthOrderPatchInterp::operator=(), EBPoissonOpFactory::operator=(), EBCFData::operator=(), RedistStencil::operator=(), EBTensorCFInterp::operator=(), EBLevelRedist::operator=(), slowEBCOFactory::operator=(), EBMGAverage::operator=(), EBPWLFineInterp::operator=(), EBCoarToCoarRedist::operator=(), EBStenVarCoef::operator=(), EBCoarToFineRedist::operator=(), EBFaceFAB::operator=(), EBFineToCoarRedist::operator=(), EBLevelGodunov::operator=(), EBCFCopy::operator=(), EBCoarsen::operator=(), FourthOrderFineInterp::operator=(), EBViscousTensorOpFactory::operator=(), EBAMRPoissonOpFactory::operator=(), IVSFAB< T >::operator=(), MiniIFFAB< Real >::operator=(), EBFluxFAB::operator=(), EBLevelAdvect::operator=(), EBConductivityOpFactory::operator=(), EBQuadCFInterp::operator=(), EBCoarseAverage::operator=(), EBStencil::operator=(), EBMGInterp::operator=(), EBISLevel::operator=(), BaseIFFAB< FaceStencil >::operator=(), EBPWLFillPatch::operator=(), IVSFABFactory< T >::operator=(), EBCellFAB::operator=(), BaseIVFAB< Real >::operator=(), EBAMRGodunov::operator=(), IrregFAB::operator=(), BaseEBFaceFAB< Real >::operator=(), EBFluxRegister::operator=(), BaseEBCellFAB< Real >::operator=(), AMRTGA< T >::operator=(), EBFastFR::operator=(), ResistivityOp::operator=(), MultiGrid< T >::operator=(), EBGraphImplem::operator=(), EBPoissonOp::operator=(), ResistivityOpFactory::operator=(), EBIndexSpace::operator=(), ViscousTensorOp::operator=(), slowEBCO::operator=(), EBPatchAdvect::operator=(), EBPatchAdvectFactory::operator=(), ViscousTensorOpFactory::operator=(), EBViscousTensorOp::operator=(), EBConductivityOp::operator=(), EBAMRPoissonOp::operator=(), AdvectPhysics::pressureIndex(), read(), RedistStencil::RedistStencil(), RefCountedPtr< T >::RefCountedPtr(), ResistivityOp::ResistivityOp(), ResistivityOpFactory::ResistivityOpFactory(), DisjointBoxLayout::setDomain(), slowEBCO::slowEBCO(), slowEBCOFactory::slowEBCOFactory(), AdvectPhysics::smallPressure(), CoefficientInterpolator< LevelData_, SolutionLevelData_ >::solve(), AMRMultiGrid< T >::solveNoInitResid(), EBAMRPoissonOp::StencilIndex::StencilIndex(), BaseLevelHeatSolver< LevelData< FArrayBox >, FluxBox, LevelFluxRegister >::updateSoln(), AdvectPhysics::velocityInterval(), EBPatchAdvect::velocityInterval(), ViscousTensorOp::ViscousTensorOp(), ViscousTensorOpFactory::ViscousTensorOpFactory(), write(), and AutoStart::~AutoStart().

static void MayDay::Abort ( const char *const  a_msg = m_nullString)
static

Print out message to cerr and exit via abort() (if serial) or MPI_Abort() (if parallel).

The exit code depends on the compiler and MPI implementation.

Referenced by ComputeCutCellMoments< dim >::addMomentMaps(), BilinearIF::BilinearIF(), RootSolver::Brent(), IFData< dim >::BrentRootFinder(), CutCellMoments< dim >::changeMomentCoordinates(), List< T >::checkLinks(), ComplementIF::ComplementIF(), DataFileIF::DataFileIF(), DEMIF::DEMIF(), LSProblem< dim >::differentiate(), EllipsoidIF::EllipsoidIF(), faceMo::faceMo(), LSProblem< dim >::factorial(), GaussianIF::GaussianIF(), GaussianSphereIF::GaussianSphereIF(), GeometryShop::GeometryShop(), ParmParse::getarr(), CutCellMoments< dim >::getBdCutCellMoments(), CutCellMoments< dim >::getMoment(), HelicoilIF::HelicoilIF(), HelixIF::HelixIF(), BaseIF::InsideOutside(), IntersectionIF::IntersectionIF(), LatheIF::LatheIF(), IFData< dim >::makeEdgeKey(), MollifyIF::MollifyIF(), MultiSphereIF::MultiSphereIF(), NewGeometryShop::NewGeometryShop(), NormalDerivative< dim >::NormalDerivative(), NormalDerivative< GLOBALDIM >::NormalDerivative(), LDOperator< FArrayBox >::op(), operator<<(), SphereArrayIF::operator=(), TylerChannelIF::operator=(), PolarIF::operator=(), EllipsoidIF::operator=(), BilinearIF::operator=(), PlaneIF::operator=(), RhodoneaIF::operator=(), MultiSphereIF::operator=(), SphereIF::operator=(), TorusIF::operator=(), GaussianSphereIF::operator=(), HelicoilIF::operator=(), GaussianIF::operator=(), HelixIF::operator=(), SumIF::operator=(), TiltedCylinderIF::operator=(), UnionIF::operator=(), IntersectionIF::operator=(), MollifyIF::operator=(), NormalDerivative< dim >::operator=(), DEMIF::operator=(), ComplementIF::operator=(), faceMo::operator=(), PolynomialIF::operator=(), LatheIF::operator=(), TransformIF::operator=(), NormalDerivative< GLOBALDIM >::operator=(), GeometryShop::operator=(), DataFileIF::operator=(), NewGeometryShop::operator=(), operator>>(), PlaneIF::PlaneIF(), PolarIF::PolarIF(), PolynomialIF::PolynomialIF(), BaseIF::print(), RhodoneaIF::RhodoneaIF(), RefinementCriterion< dim >::setBaseMaxNumberOfRefinements(), LSProblem< dim >::setMatrix(), DivNormalRefinement< dim >::setMaxChangeThreshold(), FixedRefinement< dim >::setMaxNumberOfRefinements(), DivNormalRefinement< dim >::setMaxNumberOfRefinements(), CutCellMoments< dim >::setResidual(), CutCellMoments< dim >::sliceResidual(), SphereArrayIF::SphereArrayIF(), SphereIF::SphereIF(), SumIF::SumIF(), TiltedCylinderIF::TiltedCylinderIF(), TorusIF::TorusIF(), TransformIF::TransformIF(), TylerChannelIF::TylerChannelIF(), UnionIF::UnionIF(), BaseIF::value(), and ReferenceHeightIF::value().

static void MayDay::Warning ( const char *const  a_msg = m_nullString)
static

Member Data Documentation

bool MayDay::s_debugSpew
static
const char* const MayDay::version
static
const char* const MayDay::m_nullString
staticprotected

A null string used as a default argument by the other member functions.


The documentation for this class was generated from the following file: