#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(), AdvectTestIBC::AdvectTestIBC(), LayoutData< T >::allocate(), BoxLayoutData< T >::allocateGhostVector(), AMRLevelAdvectDiffuseFactory::AMRLevelAdvectDiffuseFactory(), AMRTGA< T >::AMRTGA(), EBPatchAdvect::artificialViscosityCoefficient(), BackwardEuler::BackwardEuler(), BaseEBCellFAB< T >::BaseEBCellFAB(), BaseEBCellFAB< double >::BaseEBCellFAB(), BaseEBCellFactory< T >::BaseEBCellFactory(), BaseEBFaceFAB< T >::BaseEBFaceFAB(), BaseEBFaceFAB< double >::BaseEBFaceFAB(), BaseEBFaceFactory< T >::BaseEBFaceFactory(), BaseIFFAB< FaceStencil >::BaseIFFAB(), BaseIFFactory< T >::BaseIFFactory(), BaseIVFAB< VolData >::BaseIVFAB(), BaseIVFactory< T >::BaseIVFactory(), BaseLevelHeatSolver< LevelData< FArrayBox >, FluxBox, LevelFluxRegister >::BaseLevelHeatSolver(), BaseBCValue::beta(), blockLocalOffsets(), blockRead(), blockWrite(), EBPatchAdvect::bulkModulusIndex(), AdvectPhysics::bulkModulusIndex(), AMRMultiGrid< T >::computeAMRResidual(), MinimalCCCM< dim >::computeMomentsRecursively(), MinimalCCCM< dim >::computeRhs(), ComputeCutCellMoments< dim >::computeRhs(), List< T >::copy(), BaseEBCellFAB< T >::copy(), CopyIterator::CopyIterator(), LevelData< T >::copyTo(), Correct1D2D::Correct1D2D(), CoveredFaceFAB::CoveredFaceFAB(), CoveredFaceIterator::CoveredFaceIterator(), PetscSolver< T >::create_mat_vec(), FASMultiGrid< T >::cycle(), BaseEBFaceFAB< double >::dataPtr(), BaseEBCellFAB< double >::dataPtr(), BaseEBFaceFAB< double >::dataType(), BaseEBCellFAB< double >::dataType(), LevelData< T >::define(), BoxLayoutData< T >::define(), BaseFab< T >::define(), AMRLevelAdvectDiffuse::define(), BaseFab< T >::degenerate(), AdvectPhysics::densityIndex(), BaseIF::derivative(), TGAHelmOp< LevelData< FArrayBox > >::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(), ConductivityBaseDomainBC::fillPhiGhost(), SphereTree::findNode(), EBPatchAdvect::floorConserved(), FourthOrderInterpStencil::FourthOrderInterpStencil(), FourthOrderPatchInterp::FourthOrderPatchInterp(), NeumannViscousTensorEBBC::getEBFlux(), BaseEBBC::getEBFlux(), BaseIF::getExactEBMoments(), BaseIF::getExactEBNormalMoments(), BaseIF::getExactEBNormalPartialDerivs(), BaseIF::getExactFaceMoments(), BaseIF::getExactVolumeMoments(), ViscousBaseDomainBC::getFaceGradPhi(), ViscousBaseDomainBC::getFaceVel(), BaseDomainBC::getFaceVel(), EBPatchAdvect::getFlux(), MiniIFFAB< T >::getIndex(), getIndMomLinearIndex(), getIndMomMultiIndex(), getIndMomSize(), BaseDomainBC::getInhomFaceFlux(), EBPatchAdvect::getMaxWaveSpeed(), NWOQuadCFInterp::getMixedDerivDirections(), NWOQuadCFInterp::getMixedIndex(), 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(), LevelData< T >::localCopyTo(), MiniIFFAB< double >::MiniIFFAB(), MultiGrid< T >::MultiGrid(), NonAggregatedEBStencil::NonAggregatedEBStencil(), MultilevelLinearOp< T >::norm(), NWOEBConductivityOp::NWOEBConductivityOp(), NWOEBConductivityOpFactory::NWOEBConductivityOpFactory(), NWOEBQuadCFInterp::NWOEBQuadCFInterp(), NWOEBViscousTensorOp::NWOEBViscousTensorOp(), NWOEBViscousTensorOpFactory::NWOEBViscousTensorOpFactory(), NWOViscousTensorOp::NWOViscousTensorOp(), NWOViscousTensorOpFactory::NWOViscousTensorOpFactory(), MiniIVFAB< double >::offset(), BaseIVFAB< VolData >::offset(), BaseEBFaceFAB< double >::offset(), BaseEBCellFAB< double >::offset(), OffsetSphereExact::OffsetSphereExact(), BaseEBCellFAB< T >::operator()(), RefCountedPtr< T, OP >::operator*(), RefCountedPtr< T, OP >::operator->(), slowEBCOFactory::operator=(), slowEBCO::operator=(), ResistivityOpFactory::operator=(), ResistivityOp::operator=(), RefCountedPtr< DataFactory< NodeFArrayBox > >::operator=(), RedistStencil::operator=(), PetscCompGrid::operator=(), NWOViscousTensorOpFactory::operator=(), NWOViscousTensorOp::operator=(), NWOEBViscousTensorOpFactory::operator=(), NWOEBViscousTensorOp::operator=(), NWOEBQuadCFInterp::operator=(), NWOEBConductivityOpFactory::operator=(), NWOEBConductivityOp::operator=(), NonAggregatedEBStencil::operator=(), ViscousTensorOpFactory::operator=(), ViscousTensorOp::operator=(), MultiGrid< T >::operator=(), MiniIFFAB< double >::operator=(), IVSFABFactory< T >::operator=(), IrregFABFactory::operator=(), IrregFAB::operator=(), FourthOrderPatchInterp::operator=(), FourthOrderInterpStencil::operator=(), EBViscousTensorOpFactory::operator=(), EBViscousTensorOp::operator=(), EBTensorCFInterp::operator=(), EBStenVarCoef::operator=(), EBStencil::operator=(), EBQuadCFInterp::operator=(), EBPWLFineInterp::operator=(), EBPWLFillPatch::operator=(), EBPoissonOpFactory::operator=(), EBPoissonOp::operator=(), EBPatchAdvectFactory::operator=(), EBPatchAdvect::operator=(), EBMGInterp::operator=(), EBMGAverage::operator=(), EBLevelRedist::operator=(), EBLevelGodunov::operator=(), EBLevelAdvect::operator=(), EBISLevel::operator=(), EBIndexSpace::operator=(), EBGraphImplem::operator=(), EBFluxRegister::operator=(), EBFluxFAB::operator=(), EBFineToCoarRedist::operator=(), EBFastFR::operator=(), EBFaceFactory::operator=(), EBFaceFAB::operator=(), EBConstantCFInterp::operator=(), EBConductivityOpFactory::operator=(), EBConductivityOp::operator=(), EBCoarToFineRedist::operator=(), EBCoarToCoarRedist::operator=(), EBCoarsen::operator=(), EBCoarseAverage::operator=(), EBCFData::operator=(), EBCFCopy::operator=(), EBCellFactory::operator=(), EBCellFAB::operator=(), EBBackwardEuler::operator=(), EBAMRPoissonOpFactory::operator=(), EBAMRPoissonOp::operator=(), EBAMRGodunovFactory::operator=(), EBAMRGodunov::operator=(), EBAdvectLevelIntegrator::operator=(), CoveredFaceIterator::operator=(), CoveredFaceFAB::operator=(), Correct1D2D::operator=(), BaseIVFactory< T >::operator=(), BaseIVFAB< VolData >::operator=(), BaseIFFactory< T >::operator=(), BaseIFFAB< FaceStencil >::operator=(), BaseEBFaceFactory< T >::operator=(), BaseEBFaceFAB< double >::operator=(), BaseEBCellFactory< T >::operator=(), BaseEBCellFAB< double >::operator=(), BackwardEuler::operator=(), AMRTGA< T >::operator=(), PetscCompGrid::PetscCompGrid(), AdvectPhysics::pressureIndex(), read(), RedistStencil::RedistStencil(), RefCountedPtr< T, OP >::RefCountedPtr(), RefCountedPtr< DataFactory< NodeFArrayBox > >::RefCountedPtr(), ResistivityOp::ResistivityOp(), ResistivityOpFactory::ResistivityOpFactory(), slowEBCO::slowEBCO(), slowEBCOFactory::slowEBCOFactory(), AdvectPhysics::smallPressure(), CoefficientInterpolator< LevelData_, SolutionLevelData_ >::solve(), AMRFASMultiGrid< T >::solveNoInit(), EBAMRPoissonOp::StencilIndex::StencilIndex(), BaseLevelHeatSolver< LevelData< FArrayBox >, FluxBox, LevelFluxRegister >::updateSoln(), EBPatchAdvect::velocityInterval(), AdvectPhysics::velocityInterval(), ViscousTensorOp::ViscousTensorOp(), ViscousTensorOpFactory::ViscousTensorOpFactory(), write(), and WriteMultiData< T >::writeData().
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(), CellEdge::CellEdge(), CutCellMoments< dim >::changeMomentCoordinates(), List< T >::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(), IndexedMoments< Dim, P >::getMoment(), CutCellMoments< dim >::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< GLOBALDIM >::NormalDerivative(), NormalDerivative< dim >::NormalDerivative(), NormalDerivativeNew< dim >::NormalDerivativeNew(), LDOperator< FArrayBox >::op(), operator<<(), WrappedGShop::operator=(), UnionIF::operator=(), TylerChannelIF::operator=(), TransformIF::operator=(), TorusIF::operator=(), TiltedCylinderIF::operator=(), SumIF::operator=(), STLReader::operator=(), STLIF::operator=(), STLExplorer::operator=(), STLBinaryReader::operator=(), STLAsciiReader::operator=(), StencilTensorValue::operator=(), SphereIF::operator=(), SphereArrayIF::operator=(), SmoothUnion::operator=(), SmoothIntersection::operator=(), SmoothAbsoluteValue::operator=(), RhodoneaIF::operator=(), PolynomialIF::operator=(), PolarIF::operator=(), NormalDerivativeNew< dim >::operator=(), NormalDerivative< GLOBALDIM >::operator=(), NormalDerivative< dim >::operator=(), MultiSphereIF::operator=(), SphereTree::operator=(), faceMo::operator=(), MollifyIF::operator=(), LatheIF::operator=(), IntersectionIF::operator=(), HyperSphereIF::operator=(), HyperPlaneIF::operator=(), HelixIF::operator=(), HelicoilIF::operator=(), GeometryShop::operator=(), GaussianSphereIF::operator=(), GaussianIF::operator=(), EllipsoidIF::operator=(), DEMIF::operator=(), DataFileIF::operator=(), ComplementIF::operator=(), CellEdge::operator=(), BilinearIF::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(), SphereTree::SphereTree(), StencilTensorValue::StencilTensorValue(), STLExplorer::STLExplorer(), STLIF::STLIF(), SumIF::SumIF(), TiltedCylinderIF::TiltedCylinderIF(), TorusIF::TorusIF(), TransformIF::TransformIF(), TylerChannelIF::TylerChannelIF(), UnionIF::UnionIF(), ReferenceHeightIF::value(), and WrappedGShop::WrappedGShop().
static void MayDay::Warning | ( | const char *const | a_msg = m_nullString |
) | [static] |
Print out message to cerr and continue.
Referenced by blockRead(), LevelDataOps< T >::dotProduct(), LinearOp< LevelData< NodeFArrayBox > >::dx(), CutCellMoments< dim >::getCentroid(), LevelDataOps< T >::mDotProduct(), read(), BaseFab< T >::testBoxAndComp(), 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.