Chombo + EB + MF  3.2
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< P >::addAfter(), List< P >::addBefore(), LevelSourceTerm::addSourceTerm(), AdvectTestIBC::AdvectTestIBC(), LayoutData< Vector< IntVectSet > >::allocate(), BoxLayoutData< BaseFab< int > >::allocateGhostVector(), ParticleData< P >::allocateVector(), AMRLevelAdvectDiffuseFactory::AMRLevelAdvectDiffuseFactory(), AMRTGA< T >::AMRTGA(), EBPatchAdvect::artificialViscosityCoefficient(), PhysMappedIBC::artViscBC(), BackwardEuler::BackwardEuler(), BaseEBCellFAB< Real >::BaseEBCellFAB(), BaseEBCellFactory< T >::BaseEBCellFactory(), BaseEBFaceFAB< Real >::BaseEBFaceFAB(), BaseEBFaceFactory< T >::BaseEBFaceFactory(), BaseIFFAB< FaceStencil >::BaseIFFAB(), BaseIFFactory< T >::BaseIFFactory(), BaseIVFAB< Real >::BaseIVFAB(), BaseIVFactory< T >::BaseIVFactory(), BaseLevelHeatSolver< LevelData< FArrayBox >, FluxBox, LevelFluxRegister >::BaseLevelHeatSolver(), BaseBCValue::beta(), blockLocalOffsets(), blockRead(), blockWrite(), BlockBaseRegister< FArrayBox >::buildBoxVectors(), AdvectPhysics::bulkModulusIndex(), EBPatchAdvect::bulkModulusIndex(), AMRMultiGrid< LevelData< MFCellFAB > >::computeAMRResidual(), ComputeCutCellMoments< dim >::computeMoments(), MinimalCCCM< dim >::computeMomentsRecursively(), MinimalCCCM< dim >::computeRhs(), ComputeCutCellMoments< dim >::computeRhs(), BaseEBCellFAB< Real >::copy(), List< P >::copy(), CopyIterator::CopyIterator(), LevelData< BaseFab< int > >::copyTo(), Correct1D2D::Correct1D2D(), CoveredFaceFAB::CoveredFaceFAB(), CoveredFaceIterator::CoveredFaceIterator(), PetscSolver< LevelData< FArrayBox > >::create_mat_vec(), BlockBaseRegister< FArrayBox >::createDstBoxLayout(), BlockBaseRegister< FArrayBox >::createExchangeBoxLayout(), BlockBaseRegister< FArrayBox >::createSrcBoxLayout(), FASMultiGrid< T >::cycle(), BaseEBCellFAB< Real >::dataPtr(), BaseEBFaceFAB< Real >::dataPtr(), BaseEBCellFAB< Real >::dataType(), BaseEBFaceFAB< Real >::dataType(), ListBox< T >::define(), LevelData< BaseFab< int > >::define(), AMRLevelAdvectDiffuse::define(), BoxLayoutData< BaseFab< int > >::define(), BaseFab< Real >::define(), BaseFab< Real >::degenerate(), AdvectPhysics::densityIndex(), BaseIF::derivative(), TGAHelmOp< LevelData< MFCellFAB > >::diagonalScale(), DoubleRampExact::DoubleRampExact(), DoubleSphereExact::DoubleSphereExact(), EBAdvectLevelIntegrator::EBAdvectLevelIntegrator(), 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(), BlockBaseRegister< FArrayBox >::exchange(), BlockBaseRegister< FArrayBox >::fill(), ConductivityBaseDomainBC::fillPhiGhost(), EBPatchAdvect::floorConserved(), FourthOrderInterpStencil::FourthOrderInterpStencil(), FourthOrderOneDStencil::FourthOrderOneDStencil(), FourthOrderPatchInterp::FourthOrderPatchInterp(), FourthOrderTensorInterp::FourthOrderTensorInterp(), BaseEBBC::getEBFlux(), NeumannViscousTensorEBBC::getEBFlux(), BaseIF::getExactEBMoments(), BaseIF::getExactEBNormalMoments(), BaseIF::getExactEBNormalPartialDerivs(), BaseIF::getExactFaceMoments(), BaseIF::getExactVolumeMoments(), ViscousBaseDomainBC::getFaceGradPhi(), ViscousBaseDomainBC::getFaceVel(), BaseDomainBC::getFaceVel(), EBPatchAdvect::getFlux(), MiniIFFAB< Real >::getIndex(), getIndMomLinearIndex(), getIndMomMultiIndex(), getIndMomSize(), BaseDomainBC::getInhomFaceFlux(), EBPatchAdvect::getMaxWaveSpeed(), NWOQuadCFInterp::getMixedDerivDirections(), NWOQuadCFInterp::getMixedIndex(), H5Type(), TGAHelmOp< LevelData< MFCellFAB > >::identityCoef(), BlockBaseRegister< FArrayBox >::increment(), IndexTM< Real, GLOBALDIM >::IndexTM(), PhysMappedIBC::initializeWithJ(), 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< BaseFab< int > >::LevelData(), linearOut(), LevelData< BaseFab< int > >::localCopyTo(), BoxLayoutData< BaseFab< int > >::makeItSoLocalCopy(), MFBackwardEuler::MFBackwardEuler(), MFCellFAB::MFCellFAB(), MFFluxFAB::MFFluxFAB(), MFPoissonOpFactory::MFPoissonOpFactory(), MFStencil::MFStencil(), MiniIFFAB< Real >::MiniIFFAB(), MOLUtilities::MOLUtilities(), MultiGrid< T >::MultiGrid(), NonAggregatedEBStencil::NonAggregatedEBStencil(), MultilevelLinearOp< T >::norm(), NWOEBConductivityOp::NWOEBConductivityOp(), NWOEBConductivityOpFactory::NWOEBConductivityOpFactory(), NWOEBQuadCFInterp::NWOEBQuadCFInterp(), NWOEBViscousTensorOp::NWOEBViscousTensorOp(), NWOEBViscousTensorOpFactory::NWOEBViscousTensorOpFactory(), NWOViscousTensorOp::NWOViscousTensorOp(), NWOViscousTensorOpFactory::NWOViscousTensorOpFactory(), BaseEBCellFAB< Real >::offset(), BaseEBFaceFAB< Real >::offset(), MiniIVFAB< Real >::offset(), BaseIVFAB< Real >::offset(), OffsetSphereExact::OffsetSphereExact(), BaseEBCellFAB< Real >::operator()(), RefCountedPtr< DataFactory< NodeFArrayBox > >::operator*(), RefCountedPtr< DataFactory< NodeFArrayBox > >::operator->(), IrregFABFactory::operator=(), EBFaceFactory::operator=(), BaseEBFaceFactory< T >::operator=(), BaseEBCellFactory< T >::operator=(), EBCellFactory::operator=(), CoveredFaceIterator::operator=(), EBAMRGodunovFactory::operator=(), EBConstantCFInterp::operator=(), BaseIFFactory< T >::operator=(), BaseIVFactory< T >::operator=(), CoveredFaceFAB::operator=(), FourthOrderOneDStencil::operator=(), FourthOrderTensorInterp::operator=(), BackwardEuler::operator=(), Correct1D2D::operator=(), EBBackwardEuler::operator=(), EBPoissonOpFactory::operator=(), MFBackwardEuler::operator=(), FourthOrderPatchInterp::operator=(), EBCFData::operator=(), FourthOrderInterpStencil::operator=(), PetscCompGrid::operator=(), NWOEBQuadCFInterp::operator=(), RedistStencil::operator=(), EBTensorCFInterp::operator=(), slowEBCOFactory::operator=(), MFStencil::operator=(), EBMGAverage::operator=(), EBCoarToCoarRedist::operator=(), EBPWLFineInterp::operator=(), EBCoarToFineRedist::operator=(), EBStenVarCoef::operator=(), EBViscousTensorOpFactory::operator=(), EBFineToCoarRedist::operator=(), EBFaceFAB::operator=(), EBCFCopy::operator=(), EBLevelGodunov::operator=(), EBLevelRedist::operator=(), EBCoarsen::operator=(), MFPoissonOpFactory::operator=(), NWOEBViscousTensorOpFactory::operator=(), EBAdvectLevelIntegrator::operator=(), EBConductivityOpFactory::operator=(), NWOEBConductivityOpFactory::operator=(), NonAggregatedEBStencil::operator=(), EBFluxFAB::operator=(), EBAMRPoissonOpFactory::operator=(), EBCoarseAverage::operator=(), EBLevelAdvect::operator=(), MiniIFFAB< Real >::operator=(), EBMGInterp::operator=(), BaseIFFAB< FaceStencil >::operator=(), EBStencil::operator=(), EBQuadCFInterp::operator=(), EBPWLFillPatch::operator=(), RefCountedPtr< DataFactory< NodeFArrayBox > >::operator=(), IVSFABFactory< T >::operator=(), BaseIVFAB< Real >::operator=(), EBAMRGodunov::operator=(), IrregFAB::operator=(), BaseEBCellFAB< Real >::operator=(), EBFluxRegister::operator=(), EBISLevel::operator=(), EBCellFAB::operator=(), AMRTGA< T >::operator=(), BaseEBFaceFAB< Real >::operator=(), MOLUtilities::operator=(), EBFastFR::operator=(), EBIndexSpace::operator=(), ResistivityOp::operator=(), EBGraphImplem::operator=(), EBPoissonOp::operator=(), MultiGrid< T >::operator=(), ResistivityOpFactory::operator=(), NWOViscousTensorOp::operator=(), slowEBCO::operator=(), ViscousTensorOp::operator=(), EBPatchAdvect::operator=(), EBPatchAdvectFactory::operator=(), NWOViscousTensorOpFactory::operator=(), ViscousTensorOpFactory::operator=(), NWOEBConductivityOp::operator=(), EBViscousTensorOp::operator=(), EBConductivityOp::operator=(), NWOEBViscousTensorOp::operator=(), EBAMRPoissonOp::operator=(), PetscCompGrid::PetscCompGrid(), AdvectPhysics::pressureIndex(), PhysMappedIBC::primBC(), read(), RedistStencil::RedistStencil(), RefCountedPtr< DataFactory< NodeFArrayBox > >::RefCountedPtr(), ResistivityOp::ResistivityOp(), ResistivityOpFactory::ResistivityOpFactory(), EBPhysIBC::setCurDataIndex(), slowEBCO::slowEBCO(), slowEBCOFactory::slowEBCOFactory(), AdvectPhysics::smallPressure(), CoefficientInterpolator< LevelData< FluxBox >, LevelData< FArrayBox > >::solve(), AMRFASMultiGrid< T >::solveNoInit(), EBAMRPoissonOp::StencilIndex::StencilIndex(), MFPoissonOp::StencilIndex::StencilIndex(), BlockBaseRegister< FArrayBox >::store(), BoxLayoutData< BaseFab< int > >::unpackReceivesToMe_append(), BaseLevelHeatSolver< LevelData< FArrayBox >, FluxBox, LevelFluxRegister >::updateSoln(), AdvectPhysics::velocityInterval(), EBPatchAdvect::velocityInterval(), ViscousTensorOp::ViscousTensorOp(), ViscousTensorOpFactory::ViscousTensorOpFactory(), write(), WriteMultiData< T >::writeData(), writeParticlesToHDF(), and BlockBaseRegister< FArrayBox >::zeroRegister().

◆ 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(), BinFab< T >::BinFab(), RootSolver::Brent(), IFData< dim >::BrentRootFinder(), CellEdge::CellEdge(), CutCellMoments< dim >::changeMomentCoordinates(), List< P >::checkLinks(), ComplementIF::ComplementIF(), DataFileIF::DataFileIF(), StencilTensorValue::define(), 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(), IndexedMoments< SpaceDim, CH_EBIS_ORDER >::getMoment(), HelicoilIF::HelicoilIF(), HelixIF::HelixIF(), HyperPlaneIF::HyperPlaneIF(), HyperSphereIF::HyperSphereIF(), BaseIF::InsideOutside(), IntersectionIF::IntersectionIF(), STLUtil::IVCompareSWO::IVCompareSWO(), LatheIF::LatheIF(), IFData< dim >::makeEdgeKey(), MollifyIF::MollifyIF(), MultiSphereIF::MultiSphereIF(), NormalDerivative< dim >::NormalDerivative(), NormalDerivative< GLOBALDIM >::NormalDerivative(), NormalDerivativeNew< dim >::NormalDerivativeNew(), LDOperator< FArrayBox >::op(), operator<<(), SphereIF::operator=(), STLReader::operator=(), CellEdge::operator=(), STLAsciiReader::operator=(), STLBinaryReader::operator=(), SphereArrayIF::operator=(), HyperPlaneIF::operator=(), TylerChannelIF::operator=(), PolarIF::operator=(), EllipsoidIF::operator=(), BilinearIF::operator=(), StencilTensorValue::operator=(), SmoothUnion::operator=(), RhodoneaIF::operator=(), HyperSphereIF::operator=(), TorusIF::operator=(), STLIF::operator=(), MultiSphereIF::operator=(), HelicoilIF::operator=(), GaussianIF::operator=(), HelixIF::operator=(), SumIF::operator=(), TiltedCylinderIF::operator=(), UnionIF::operator=(), IntersectionIF::operator=(), SmoothIntersection::operator=(), NormalDerivative< dim >::operator=(), DEMIF::operator=(), MollifyIF::operator=(), ComplementIF::operator=(), GaussianSphereIF::operator=(), faceMo::operator=(), PolynomialIF::operator=(), LatheIF::operator=(), SmoothAbsoluteValue::operator=(), TransformIF::operator=(), STLExplorer::operator=(), NormalDerivative< GLOBALDIM >::operator=(), GeometryShop::operator=(), NormalDerivativeNew< dim >::operator=(), WrappedGShop::operator=(), DataFileIF::operator=(), operator>>(), 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(), SmoothAbsoluteValue::SmoothAbsoluteValue(), SmoothIntersection::SmoothIntersection(), SmoothUnion::SmoothUnion(), SphereArrayIF::SphereArrayIF(), StencilTensorValue::StencilTensorValue(), STLExplorer::STLExplorer(), STLIF::STLIF(), SumIF::SumIF(), TiltedCylinderIF::TiltedCylinderIF(), TorusIF::TorusIF(), TransformIF::TransformIF(), TylerChannelIF::TylerChannelIF(), UnionIF::UnionIF(), ReferenceHeightIF::value(), and WrappedGShop::WrappedGShop().

◆ 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: