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

◆ Error()

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< Vector< IntVectSet > >::allocate(), BoxLayoutData< EBFluxFAB >::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< LevelData< T > >::computeAMRResidual(), ComputeCutCellMoments< dim >::computeMoments(), ComputeCutCellMoments< dim >::computeRhs(), BaseEBCellFAB< Real >::copy(), List< T >::copy(), CopyIterator::CopyIterator(), LevelData< EBFluxFAB >::copyTo(), Correct1D2D::Correct1D2D(), CoveredFaceFAB::CoveredFaceFAB(), CoveredFaceIterator::CoveredFaceIterator(), PetscSolver< LevelData< FArrayBox > >::create_mat_vec(), BaseEBCellFAB< Real >::dataPtr(), BaseEBFaceFAB< Real >::dataPtr(), BaseEBCellFAB< Real >::dataType(), BaseEBFaceFAB< Real >::dataType(), LevelData< EBFluxFAB >::define(), BoxLayoutData< EBFluxFAB >::define(), BaseFab< Real >::define(), BaseFab< Real >::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< Real >::getIndex(), BaseDomainBC::getInhomFaceFlux(), EBPatchAdvect::getMaxWaveSpeed(), H5Type(), TGAHelmOp< LevelData< FArrayBox > >::identityCoef(), IndexTM< Real, GLOBALDIM >::IndexTM(), CoefficientInterpolator< LevelData< FluxBox >, LevelData< FArrayBox > >::interpolate(), CoefficientInterpolator< LevelData< FluxBox >, LevelData< FArrayBox > >::interpolatePrime(), LSProblem< dim >::invertNormalEq(), IrregFAB::IrregFAB(), IrregFABFactory::IrregFABFactory(), BaseDomainBC::isDirichletDom(), IVSFAB< T >::IVSFAB(), IVSFABFactory< T >::IVSFABFactory(), LevelData< EBFluxFAB >::LevelData(), IVSFAB< T >::linearIn(), linearOut(), GeometryService::makeGrids(), MiniIFFAB< Real >::MiniIFFAB(), MiniIVFAB< Real >::MiniIVFAB(), MultiGrid< T >::MultiGrid(), MultilevelLinearOp< T >::norm(), BaseEBCellFAB< Real >::offset(), BaseEBFaceFAB< Real >::offset(), BaseIVFAB< Real >::offset(), BaseEBCellFAB< Real >::operator()(), RefCountedPtr< DataFactory< NodeFArrayBox > >::operator*(), RefCountedPtr< DataFactory< NodeFArrayBox > >::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=(), Correct1D2D::operator=(), BackwardEuler::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=(), EBConductivityOpFactory::operator=(), EBLevelAdvect::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< DataFactory< NodeFArrayBox > >::RefCountedPtr(), ResistivityOp::ResistivityOp(), ResistivityOpFactory::ResistivityOpFactory(), DisjointBoxLayout::setDomain(), slowEBCO::slowEBCO(), slowEBCOFactory::slowEBCOFactory(), AdvectPhysics::smallPressure(), CoefficientInterpolator< LevelData< FluxBox >, LevelData< FArrayBox > >::solve(), AMRMultiGrid< LevelData< T > >::solveNoInitResid(), EBAMRPoissonOp::StencilIndex::StencilIndex(), BoxLayoutData< EBFluxFAB >::unpackReceivesToMe_append(), BaseLevelHeatSolver< LevelData< FArrayBox >, FluxBox, LevelFluxRegister >::updateSoln(), AdvectPhysics::velocityInterval(), EBPatchAdvect::velocityInterval(), ViscousTensorOp::ViscousTensorOp(), ViscousTensorOpFactory::ViscousTensorOpFactory(), write(), and AutoStart::~AutoStart().

◆ Abort()

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< GLOBALDIM >::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< GLOBALDIM >::getBdCutCellMoments(), CutCellMoments< GLOBALDIM >::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< GLOBALDIM >::setResidual(), CutCellMoments< GLOBALDIM >::sliceResidual(), SphereArrayIF::SphereArrayIF(), SphereIF::SphereIF(), SumIF::SumIF(), TiltedCylinderIF::TiltedCylinderIF(), TorusIF::TorusIF(), TransformIF::TransformIF(), TylerChannelIF::TylerChannelIF(), UnionIF::UnionIF(), BaseIF::value(), and ReferenceHeightIF::value().

◆ Warning()

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

Member Data Documentation

◆ s_debugSpew

bool MayDay::s_debugSpew
static

◆ version

const char* const MayDay::version
static

◆ m_nullString

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: