MayDay Class Reference

#include <MayDay.H>

List of all members.


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.

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.


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< double >::BaseEBCellFAB(), BaseEBCellFactory< T >::BaseEBCellFactory(), BaseEBFaceFAB< double >::BaseEBFaceFAB(), 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(), 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(), BaseEBFaceFAB< double >::dataPtr(), BaseEBCellFAB< double >::dataPtr(), BaseEBFaceFAB< double >::dataType(), BaseEBCellFAB< double >::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(), NeumannViscousTensorEBBC::getEBFlux(), BaseEBBC::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< double >::MiniIFFAB(), MiniIVFAB< double >::MiniIVFAB(), MultiGrid< T >::MultiGrid(), MultilevelLinearOp< T >::norm(), BaseIVFAB< VolData >::offset(), BaseEBFaceFAB< double >::offset(), BaseEBCellFAB< double >::offset(), BaseEBCellFAB< T >::operator()(), RefCountedPtr< T >::operator*(), RefCountedPtr< T >::operator->(), ViscousTensorOpFactory::operator=(), ViscousTensorOp::operator=(), slowEBCOFactory::operator=(), slowEBCO::operator=(), ResistivityOpFactory::operator=(), ResistivityOp::operator=(), RedistStencil::operator=(), MultiGrid< T >::operator=(), MiniIFFAB< double >::operator=(), IVSFAB< T >::operator=(), IVSFABFactory< T >::operator=(), IrregFABFactory::operator=(), IrregFAB::operator=(), FourthOrderPatchInterp::operator=(), FourthOrderInterpStencil::operator=(), FourthOrderFineInterp::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=(), EBIndexSpace::operator=(), EBISLevel::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=(), CoveredFaceIterator::operator=(), CoveredFaceFAB::operator=(), Correct1D2D::operator=(), BaseIVFactory< T >::operator=(), BaseIVFAB< VolData >::operator=(), BaseIFFactory< T >::operator=(), BaseIFFAB< FaceStencil >::operator=(), BaseEBFaceFAB< double >::operator=(), BaseEBCellFactory< T >::operator=(), BaseEBCellFAB< double >::operator=(), BackwardEuler::operator=(), AMRTGA< T >::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(), EBPatchAdvect::velocityInterval(), AdvectPhysics::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< GLOBALDIM >::NormalDerivative(), NormalDerivative< dim >::NormalDerivative(), LDOperator< FArrayBox >::op(), operator<<(), UnionIF::operator=(), TylerChannelIF::operator=(), TransformIF::operator=(), TorusIF::operator=(), TiltedCylinderIF::operator=(), SumIF::operator=(), SphereIF::operator=(), SphereArrayIF::operator=(), RhodoneaIF::operator=(), PolynomialIF::operator=(), PolarIF::operator=(), PlaneIF::operator=(), NormalDerivative< GLOBALDIM >::operator=(), NormalDerivative< dim >::operator=(), NewGeometryShop::operator=(), MultiSphereIF::operator=(), faceMo::operator=(), MollifyIF::operator=(), LatheIF::operator=(), IntersectionIF::operator=(), HelixIF::operator=(), HelicoilIF::operator=(), GeometryShop::operator=(), GaussianSphereIF::operator=(), GaussianIF::operator=(), EllipsoidIF::operator=(), DEMIF::operator=(), DataFileIF::operator=(), ComplementIF::operator=(), BilinearIF::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(), ReferenceHeightIF::value(), and BaseIF::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 [static, protected]

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


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

Generated on Fri Sep 22 03:43:05 2017 for Chombo + EB by  doxygen 1.5.5