#include <MayDay.H>
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.
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. | |
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). | |
static void | Warning (const char *const a_msg=m_nullString) |
Print out message to cerr and continue. | |
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. |
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(), AMRLevelPolytropicGas::AMRLevelPolytropicGas(), AMRLevelPolytropicGasFactory::AMRLevelPolytropicGasFactory(), AMRLevelWaveEqnFactory::AMRLevelWaveEqnFactory(), AMRLevelWaveEquation::AMRLevelWaveEquation(), AMRMultiGrid< LevelData< T > >::AMRMultiGrid(), AMRTGA< T >::AMRTGA(), EBPatchAdvect::artificialViscosityCoefficient(), BaseEBCellFAB< double >::BaseEBCellFAB(), BaseEBCellFactory< T >::BaseEBCellFactory(), BaseEBFaceFAB< double >::BaseEBFaceFAB(), BaseIFFAB< FaceStencil >::BaseIFFAB(), BaseIFFactory< T >::BaseIFFactory(), BaseIVFAB< VolData >::BaseIVFAB(), BaseIVFactory< T >::BaseIVFactory(), BaseLevelTGA< LevelData< FArrayBox >, FluxBox, LevelFluxRegister >::BaseLevelTGA(), BaseBCValue::beta(), IFData< dim >::BrentRootFinder(), EBPatchAdvect::bulkModulusIndex(), AdvectPhysics::bulkModulusIndex(), ComplementIF::ComplementIF(), AMRMultiGrid< T >::computeAMRResidual(), List< T >::copy(), CopyIterator::CopyIterator(), LevelData< T >::copyTo(), CoveredFaceFAB::CoveredFaceFAB(), CoveredFaceIterator::CoveredFaceIterator(), DataFileIF::DataFileIF(), LevelData< T >::define(), BoxLayoutData< T >::define(), BaseFab< T >::define(), BaseFab< T >::degenerate(), DEMIF::DEMIF(), EBAMRGodunov::EBAMRGodunov(), EBAMRGodunovFactory::EBAMRGodunovFactory(), EBAMRPoissonOp::EBAMRPoissonOp(), EBAMRPoissonOpFactory::EBAMRPoissonOpFactory(), EBBackwardEuler::EBBackwardEuler(), EBCellFAB::EBCellFAB(), EBCellFactory::EBCellFactory(), EBCoarseAverage::EBCoarseAverage(), EBCoarsen::EBCoarsen(), EBCoarToCoarRedist::EBCoarToCoarRedist(), EBCoarToFineRedist::EBCoarToFineRedist(), EBCompositeCCProjector::EBCompositeCCProjector(), EBCompositeMACProjector::EBCompositeMACProjector(), EBConductivityOp::EBConductivityOp(), EBConductivityOpFactory::EBConductivityOpFactory(), EBConstantCFInterp::EBConstantCFInterp(), EBFaceFAB::EBFaceFAB(), EBFaceFactory::EBFaceFactory(), EBFastFR::EBFastFR(), EBFineToCoarRedist::EBFineToCoarRedist(), EBFluxFAB::EBFluxFAB(), EBFluxRegister::EBFluxRegister(), EBGradDivFilter::EBGradDivFilter(), EBGraphFactory::EBGraphFactory(), EBGraphImplem::EBGraphImplem(), EBIndexSpace::EBIndexSpace(), EBISLevel::EBISLevel(), EBLevelAdvect::EBLevelAdvect(), EBLevelCCProjector::EBLevelCCProjector(), EBLevelGodunov::EBLevelGodunov(), EBLevelMACProjector::EBLevelMACProjector(), EBLevelRedist::EBLevelRedist(), EBMGAverage::EBMGAverage(), EBMGInterp::EBMGInterp(), EBPatchAdvect::EBPatchAdvect(), EBPatchAdvectFactory::EBPatchAdvectFactory(), EBPoissonOp::EBPoissonOp(), EBPoissonOpFactory::EBPoissonOpFactory(), EBPWLFillPatch::EBPWLFillPatch(), EBPWLFineInterp::EBPWLFineInterp(), EBPWQuadFillPatch::EBPWQuadFillPatch(), EBPWQuadFineInterp::EBPWQuadFineInterp(), EBQuadCFInterp::EBQuadCFInterp(), EBStencil::EBStencil(), EBTensorCFInterp::EBTensorCFInterp(), EBViscousTensorOp::EBViscousTensorOp(), EBViscousTensorOpFactory::EBViscousTensorOpFactory(), EllipsoidIF::EllipsoidIF(), faceMo::faceMo(), EBPatchAdvect::floorConserved(), GaussianIF::GaussianIF(), GaussianSphereIF::GaussianSphereIF(), GeometryShop::GeometryShop(), CutCellMoments< dim >::getCentroid(), NeumannViscousTensorEBBC::getEBFlux(), DirichletViscousTensorEBBC::getEBFlux(), ViscousBaseDomainBC::getFaceGradPhi(), ViscousBaseDomainBC::getFaceVel(), EBPatchAdvect::getFlux(), MiniIFFAB< T >::getIndex(), EBPatchAdvect::getMaxWaveSpeed(), EBIBC::getScalarEBBC(), GodunovPhysics::GodunovPhysics(), GodunovUtilities::GodunovUtilities(), HelicoilIF::HelicoilIF(), HelixIF::HelixIF(), InflowOutflowAdvectBC::InflowOutflowAdvectBC(), InflowOutflowAdvectBCFactory::InflowOutflowAdvectBCFactory(), InflowOutflowIBC::InflowOutflowIBC(), InflowOutflowIBCFactory::InflowOutflowIBCFactory(), InflowOutflowAdvectBC::initialize(), BaseIF::InsideOutside(), IntersectionIF::IntersectionIF(), IVSFAB< T >::IVSFAB(), LatheIF::LatheIF(), LevelData< T >::LevelData(), LevelGodunov::LevelGodunov(), LevelWaveOperator::LevelWaveOperator(), IVSFAB< T >::linearIn(), IVSFAB< T >::linearOut(), MiniIFFAB< T >::MiniIFFAB(), MiniIVFAB< double >::MiniIVFAB(), MollifyIF::MollifyIF(), MultiGrid< LevelData< EBCellFAB > >::MultiGrid(), MultiSphereIF::MultiSphereIF(), NewGeometryShop::NewGeometryShop(), NoFlowVortex::NoFlowVortex(), NoFlowVortexFactory::NoFlowVortexFactory(), MultilevelLinearOp< T >::norm(), BaseEBCellFAB< T >::operator()(), RefCountedPtr< T >::operator*(), RefCountedPtr< T >::operator->(), operator<<(), ViscousTensorOpFactory::operator=(), ViscousTensorOp::operator=(), UnionIF::operator=(), TylerChannelIF::operator=(), TransformIF::operator=(), TorusIF::operator=(), TiltedCylinderIF::operator=(), SphereIF::operator=(), SphereArrayIF::operator=(), RhodoneaIF::operator=(), ResistivityOpFactory::operator=(), ResistivityOp::operator=(), RedistStencil::operator=(), PolytropicPhysics::operator=(), PolynomialIF::operator=(), PolarIF::operator=(), PlaneIF::operator=(), PhysIBC::operator=(), PatchGodunov::operator=(), NewGeometryShop::operator=(), MultiSphereIF::operator=(), MultiGrid< LevelData< EBCellFAB > >::operator=(), faceMo::operator=(), MollifyIF::operator=(), MiniIFFAB< T >::operator=(), LevelWaveOperator::operator=(), LevelGodunov::operator=(), LatheIF::operator=(), IVSFAB< T >::operator=(), IntersectionIF::operator=(), HelixIF::operator=(), HelicoilIF::operator=(), GodunovUtilities::operator=(), GodunovPhysics::operator=(), GeometryShop::operator=(), GaussianSphereIF::operator=(), GaussianIF::operator=(), EllipsoidIF::operator=(), EBViscousTensorOpFactory::operator=(), EBViscousTensorOp::operator=(), EBTensorCFInterp::operator=(), EBStencil::operator=(), EBQuadCFInterp::operator=(), EBPWQuadFineInterp::operator=(), EBPWQuadFillPatch::operator=(), EBPWLFineInterp::operator=(), EBPWLFillPatch::operator=(), EBPoissonOpFactory::operator=(), EBPoissonOp::operator=(), EBPatchAdvectFactory::operator=(), EBPatchAdvect::operator=(), EBMGInterp::operator=(), EBMGAverage::operator=(), EBLevelRedist::operator=(), EBLevelMACProjector::operator=(), EBLevelGodunov::operator=(), EBLevelCCProjector::operator=(), EBLevelAdvect::operator=(), EBIndexSpace::operator=(), EBISLevel::operator=(), EBGraphImplem::operator=(), EBGradDivFilter::operator=(), EBFluxRegister::operator=(), EBFluxFAB::operator=(), EBFineToCoarRedist::operator=(), EBFastFR::operator=(), EBFaceFactory::operator=(), EBFaceFAB::operator=(), EBConstantCFInterp::operator=(), EBConductivityOpFactory::operator=(), EBConductivityOp::operator=(), EBCompositeMACProjector::operator=(), EBCompositeCCProjector::operator=(), EBCoarToFineRedist::operator=(), EBCoarToCoarRedist::operator=(), EBCoarsen::operator=(), EBCoarseAverage::operator=(), EBCellFactory::operator=(), EBCellFAB::operator=(), EBBackwardEuler::operator=(), EBAMRPoissonOpFactory::operator=(), EBAMRPoissonOp::operator=(), EBAMRGodunovFactory::operator=(), EBAMRGodunov::operator=(), DEMIF::operator=(), DataFileIF::operator=(), CoveredFaceIterator::operator=(), CoveredFaceFAB::operator=(), ComplementIF::operator=(), BaseLevelTGA< LevelData< FArrayBox >, FluxBox, LevelFluxRegister >::operator=(), BaseIVFactory< T >::operator=(), BaseIVFAB< VolData >::operator=(), BaseIFFactory< T >::operator=(), BaseIFFAB< FaceStencil >::operator=(), BaseEBFaceFAB< double >::operator=(), BaseEBCellFactory< T >::operator=(), BaseEBCellFAB< double >::operator=(), AMRTGA< T >::operator=(), AMRMultiGrid< LevelData< T > >::operator=(), AMRLevelWaveEquation::operator=(), AMRLevelWaveEqnFactory::operator=(), AMRLevelPolytropicGasFactory::operator=(), AMRLevelPolytropicGas::operator=(), operator>>(), PatchGodunov::PatchGodunov(), PhysIBC::PhysIBC(), PlaneIF::PlaneIF(), PolarIF::PolarIF(), PolynomialIF::PolynomialIF(), PolytropicPhysics::PolytropicPhysics(), AdvectPhysics::pressureIndex(), RedistStencil::RedistStencil(), BoxLayout::ref(), RefCountedPtr< T >::RefCountedPtr(), ResistivityOp::ResistivityOp(), ResistivityOpFactory::ResistivityOpFactory(), RhodoneaIF::RhodoneaIF(), DisjointBoxLayout::setDomain(), IVSFAB< T >::size(), AdvectPhysics::smallPressure(), SphereArrayIF::SphereArrayIF(), SphereIF::SphereIF(), TiltedCylinderIF::TiltedCylinderIF(), TorusIF::TorusIF(), TransformIF::TransformIF(), TylerChannelIF::TylerChannelIF(), UnionIF::UnionIF(), EBPatchAdvect::velocityInterval(), AdvectPhysics::velocityInterval(), ViscousTensorOp::ViscousTensorOp(), ViscousTensorOpFactory::ViscousTensorOpFactory(), 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 CutCellMoments< dim >::addMomentMaps(), CutCellMoments< dim >::changeMomentCoordinates(), List< T >::checkLinks(), LSProblem< dim >::computeBounds(), CutCellMoments< dim >::computeRhs(), LSProblem< dim >::differentiate(), LSProblem< dim >::factorial(), ParmParse::getarr(), CutCellMoments< dim >::getBdCutCellMoments(), CutCellMoments< 1 >::getCentroid(), CutCellMoments< 1 >::getMoment(), CutCellMoments< dim >::getMoment(), BaseIF::grad(), BaseIF::gradGrad(), BaseIF::gradNormal(), IFData< 1 >::IFData(), IFData< dim >::IFData(), IFData< dim >::makeEdgeKey(), IFData< dim >::midPtRootFinder(), BaseIF::normal(), LDOperator< FArrayBox >::op(), IFData< 1 >::print(), LSProblem< dim >::setMatrix(), and BaseIF::value().
static void MayDay::Warning | ( | const char *const | a_msg = m_nullString |
) | [static] |
Print out message to cerr and continue.
Referenced by LevelDataOps< T >::dotProduct(), CutCellMoments< dim >::getCentroid(), IFData< 1 >::print(), MultilevelLinearOp< T >::write(), and LinearOp< LevelData< NodeFArrayBox > >::write().
bool MayDay::s_debugSpew [static] |
const char* const MayDay::version [static] |
const char* const MayDay::m_nullString [static, protected] |
A null string used as a default argument by the other member functions.