Chaste  Release::3.4
Exception.hpp File Reference
#include <string>
#include <sstream>
#include <cfloat>
#include <climits>
#include <cstdlib>
#include <boost/preprocessor/stringize.hpp>
+ Include dependency graph for Exception.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Exception
 

Macros

#define EXCEPTION(message)
 
#define EXCEPT_IF_NOT(test)   if (!(test)) EXCEPTION("Assertion tripped: " BOOST_PP_STRINGIZE(test))
 
#define TERMINATE(message)
 
#define NEVER_REACHED   TERMINATE("Should have been impossible to reach this line of code"); exit(EXIT_FAILURE)
 
#define UNUSED_OPT(var)
 
#define ABORT_IF_THROWS(block)
 
#define EXPECT0(cmd, arg)
 
#define ABORT_IF_NON0_WITH_MSG(retcode, msg)
 
#define ABORT_IF_NON0(cmd, arg)
 
#define EXPECT_NON0(cmd, arg)
 
#define IGNORE_RET(cmd, arg)
 

Variables

const unsigned UNSIGNED_UNSET = UINT_MAX
 
const int INT_UNSET = INT_MAX
 
const double DOUBLE_UNSET = DBL_MAX
 

Detailed Description

Contains the Exception class, along with some macros that are widely used throughout the code.

Definition in file Exception.hpp.

Macro Definition Documentation

#define ABORT_IF_NON0 (   cmd,
  arg 
)
Value:
{ \
std::string _arg(arg); \
int ret = cmd(_arg.c_str()); \
ABORT_IF_NON0_WITH_MSG(ret, "Error executing command: " #cmd "(" + _arg + ")") \
}
#define ABORT_IF_NON0_WITH_MSG(retcode, msg)
Definition: Exception.hpp:270
Note
This macro is deprecated, and no longer used by core code.

Handy for calling functions like system which return non-zero on error. Terminate if an error occurs.

This macro should be used instead of EXPECT0 within blocks that are only executed by one process, but need to kill all processes if an error occurs.

Parameters
cmdcommand to call
argits argument (will be converted to std::string)

Definition at line 287 of file Exception.hpp.

#define ABORT_IF_NON0_WITH_MSG (   retcode,
  msg 
)
Value:
if (retcode != 0) { \
TERMINATE(msg); \
}
#define TERMINATE(message)
Definition: Exception.hpp:168
Note
This macro is deprecated, and no longer used by core code.

Handy for calling functions like system which return non-zero on error. Terminate if the return code is non-zero, printing a suitable message.

Parameters
retcodecommand return code
msgerror message to display

Definition at line 270 of file Exception.hpp.

#define ABORT_IF_THROWS (   block)
Value:
try { \
block; \
} catch (const Exception& e) { \
} catch (const std::exception &e) { \
TERMINATE(e.what()); \
} catch (...) { \
TERMINATE("Unexpected exception thrown."); \
}
#define TERMINATE(message)
Definition: Exception.hpp:168
std::string GetMessage() const
Definition: Exception.cpp:87

Convenience function to convert an exception thrown by a single process into termination of the entire program.

Parameters
blockthe block of code to execute

Definition at line 225 of file Exception.hpp.

Referenced by OutputDirectoryFifoQueue::CreateNextDir(), and AbstractTetrahedralMesh< SPACE_DIM, SPACE_DIM >::save().

#define EXCEPTION (   message)
Value:
do { \
std::stringstream msg_stream; \
msg_stream << message; \
throw Exception(msg_stream.str(), __FILE__, __LINE__); \
} while (false)

Convenience macro for throwing an exception, in order to add file and line info.

Parameters
messagethe error message to use, as a streamed expression

Definition at line 143 of file Exception.hpp.

Referenced by AbstractCardiacProblem< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::AbstractCardiacProblem(), AbstractCardiacTissue< ELEMENT_DIM, SPACE_DIM >::AbstractCardiacTissue(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::AbstractCellPopulation(), AbstractContinuumMechanicsAssembler< DIM, true, true >::AbstractContinuumMechanicsAssembler(), AbstractContinuumMechanicsSolver< DIM >::AbstractContinuumMechanicsSolver(), CaBasedCellPopulation< DIM >::AddCellUsingLocationIndex(), RepulsionForce< DIM >::AddForceContribution(), VertexCryptBoundaryForce< DIM >::AddForceContribution(), WelikyOsterForce< DIM >::AddForceContribution(), AbstractTwoBodyInteractionForce< ELEMENT_DIM, SPACE_DIM >::AddForceContribution(), FarhadifarForce< DIM >::AddForceContribution(), NagaiHondaForce< DIM >::AddForceContribution(), DiffusionForce< DIM >::AddForceContribution(), LinearSpringWithVariableSpringConstantsForce< DIM >::AddForceContribution(), CryptProjectionForce::AddForceContribution(), QuadraticMeshHelper< DIM >::AddNodesToBoundaryElements(), CellBasedPdeHandler< DIM >::AddPdeAndBc(), CellPropertyCollection::AddProperty(), AbstractCardiacCell::AdjustOutOfRangeSlowValues(), RungeKuttaFehlbergIvpOdeSolver::AdjustStepSize(), Hdf5DataWriter::AdvanceAlongUnlimitedDimension(), TimeStepper::AdvanceOneTimeStep(), BidomainProblem< DIM >::AnalyseMeshForBath(), Hdf5DataWriter::ApplyPermutation(), ArchiveOpener< Archive, Stream >::ArchiveOpener(), AxisymmetricConductivityTensors< ELEMENT_DIM, SPACE_DIM >::AxisymmetricConductivityTensors(), CaBasedCellPopulation< DIM >::CaBasedCellPopulation(), AbstractFunctionalCalculator< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::Calculate(), PropagationPropertiesCalculator::CalculateActionPotentialDuration(), CellProperties::CalculateActionPotentialDurations(), NhsModelWithBackwardSolver::CalculateCaTropAndZDerivatives(), BoxCollection< DIM >::CalculateContainingBox(), DistributedBoxCollection< DIM >::CalculateContainingBox(), ExclusionCaBasedDivisionRule< SPACE_DIM >::CalculateDaughterNodeIndex(), CalculateEigenvectorForSmallestNonzeroEigenvalue(), AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::CalculateJacobian(), AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::CalculateNormal(), CellProperties::CalculateProperties(), AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::CalculateWeightedDirection(), CardiacSimulation::CardiacSimulation(), Cell::Cell(), ChasteCuboid< SPACE_DIM >::ChasteCuboid(), ChasteEllipsoid< SPACE_DIM >::ChasteEllipsoid(), SloughingCellKiller< DIM >::CheckAndLabelCellsForApoptosisOrDeath(), SolidMechanicsProblemDefinition< DIM >::CheckCastSuccess(), AbstractBidomainSolver< ELEMENT_DIM, SPACE_DIM >::CheckCompatibilityCondition(), AbstractExtendedBidomainSolver< ELEMENT_DIM, SPACE_DIM >::CheckCompatibilityCondition(), CellProperties::CheckExceededThreshold(), ColumnDataReader::CheckFiles(), ElectrodesStimulusFactory< DIM >::CheckForElectrodesIntersection(), XmlTransforms::CheckForIluPreconditioner(), Node< SPACE_DIM >::CheckForNodeAttributes(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::CheckOutwardNormals(), AbstractParameterisedSystem< VECTOR >::CheckParametersOnLoad(), HeartConfig::CheckResumeSimulationIsDefined(), CellProperties::CheckReturnedToThreshold(), HeartConfig::CheckSimulationIsDefined(), HeartConfig::CheckTimeSteps(), Hdf5DataWriter::CheckUnitsName(), ColumnDataWriter::CheckUnitsName(), Hdf5DataWriter::CheckVariableName(), ColumnDataWriter::CheckVariableName(), CmguiDeformedSolutionsWriter< DIM >::CmguiDeformedSolutionsWriter(), ColumnDataReader::ColumnDataReader(), ColumnDataWriter::ColumnDataWriter(), Hdf5DataReader::CommonConstructor(), OutputFileHandler::CommonConstructor(), CompressibleNonlinearElasticitySolver< DIM >::CompressibleNonlinearElasticitySolver(), FineCoarseMeshPair< DIM >::ComputeCoarseElementsForFineElementCentroids(), FineCoarseMeshPair< DIM >::ComputeCoarseElementsForFineNodes(), AbstractParameterisedSystem< VECTOR >::ComputeDerivedQuantities(), Electrodes< DIM >::ComputeElectrodesAreasAndCheckEquality(), FineCoarseMeshPair< DIM >::ComputeFineElementsAndWeightsForCoarseNodes(), FineCoarseMeshPair< DIM >::ComputeFineElementsAndWeightsForCoarseQuadPoints(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ComputeMeshPartitioning(), PoleZeroMaterialLaw< DIM >::ComputeStressAndStressDerivative(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructCuboid(), DistributedQuadraticMesh< DIM >::ConstructFromMeshReader(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), Toroidal2dVertexMesh::ConstructFromMeshReader(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructLinearMesh(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructRectangularMesh(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructRegularSlabMesh(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructRegularSlabMeshWithDimensionSplit(), ContinuumMechanicsNeumannBcsAssembler< DIM >::ContinuumMechanicsNeumannBcsAssembler(), CellMLToSharedLibraryConverter::Convert(), CellMLToSharedLibraryConverter::ConvertCellmlToSo(), CmguiDeformedSolutionsWriter< DIM >::ConvertOutput(), OutputFileHandler::CopyFileTo(), FileFinder::CopyTo(), CreateElectricsProblem< DIM, 1u >::Create(), CreateElectricsProblem< DIM, 2u >::Create(), HeartConfigRelatedCellFactory< SPACE_DIM >::CreateCellWithIntracellularStimulus(), AbstractNonlinearElasticitySolver< DIM >::CreateCmguiOutput(), AbstractContinuumMechanicsSolver< DIM >::CreateVtkOutput(), CryptSimulation2d::CryptSimulation2d(), CvodeAdaptor::CvodeError(), AbstractCvodeSystem::CvodeError(), AbstractCellProperty::DecrementCellCount(), ColumnDataWriter::DefineFixedDimension(), Hdf5DataWriter::DefineFixedDimension(), Hdf5DataWriter::DefineFixedDimensionUsingMatrix(), ColumnDataWriter::DefineUnlimitedDimension(), Hdf5DataWriter::DefineUnlimitedDimension(), ColumnDataWriter::DefineVariable(), Hdf5DataWriter::DefineVariable(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::DeleteBoundaryNodeAt(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::DeleteNode(), NodesOnlyMesh< SPACE_DIM >::DeleteNode(), HeartGeometryInformation< SPACE_DIM >::DetermineLayerForEachNode(), PottsMesh< DIM >::DivideElement(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::DivideElementAlongGivenAxis(), ColumnDataWriter::DoAdvanceAlongUnlimitedDimension(), AbstractFeCableIntegralAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, CAN_ASSEMBLE_VECTOR, CAN_ASSEMBLE_MATRIX, INTERPOLATION_LEVEL >::DoAssemble(), ContinuumMechanicsNeumannBcsAssembler< DIM >::DoAssemble(), AbstractFeVolumeIntegralAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, CAN_ASSEMBLE_VECTOR, CAN_ASSEMBLE_MATRIX, INTERPOLATION_LEVEL >::DoAssemble(), AbstractContinuumMechanicsAssembler< DIM, CAN_ASSEMBLE_VECTOR, CAN_ASSEMBLE_MATRIX >::DoAssemble(), NodePartitioner< ELEMENT_DIM, SPACE_DIM >::DumbPartitioning(), DynamicCellModelLoader::DynamicCellModelLoader(), ElectrodesStimulusFactory< DIM >::ElectrodesStimulusFactory(), ColumnDataWriter::EndDefineMode(), Hdf5DataWriter::EndDefineMode(), GenericEventHandler< 11, MeshEventHandler >::EndEventImpl(), AbstractCvodeSystem::EvaluateAnalyticJacobian(), AdhesionPottsUpdateRule< DIM >::EvaluateHamiltonianContribution(), VolumeConstraintPottsUpdateRule< DIM >::EvaluateHamiltonianContribution(), SurfaceAreaConstraintPottsUpdateRule< DIM >::EvaluateHamiltonianContribution(), NhsContractionModel::EvaluateYDerivatives(), ExponentialMaterialLaw< DIM >::ExponentialMaterialLaw(), ExtendedBidomainSolver< ELEM_DIM, SPACE_DIM >::ExtendedBidomainSolver(), FibreReader< DIM >::FibreReader(), FileFinder::FindMatches(), AbstractGeneralizedRushLarsenCardiacCell::ForceUseOfNumericalJacobian(), AbstractCvodeSystem::ForceUseOfNumericalJacobian(), GaussianQuadratureRule< 1 >::GaussianQuadratureRule(), GaussianQuadratureRule< ELEMENT_DIM >::GaussianQuadratureRule(), CellsGenerator< CELL_CYCLE_MODEL, DIM >::GenerateBasic(), NodePartitioner< ELEMENT_DIM, SPACE_DIM >::GeometricPartitioning(), ProcessSpecificArchive< Archive >::Get(), HeartConfig::GetAbsoluteTolerance(), ImplicitCardiacMechanicsSolver< ELASTICITY_SOLVER, DIM >::GetActiveTensionAndTensionDerivs(), FibreReader< DIM >::GetAllAxi(), FibreReader< DIM >::GetAllOrtho(), TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetAngleBetweenNodes(), AbstractParameterisedSystem< VECTOR >::GetAnyVariable(), AbstractOdeSystemInformation::GetAnyVariableIndex(), AbstractOdeSystemInformation::GetAnyVariableUnits(), ParallelCellsGenerator< CELL_CYCLE_MODEL, DIM >::GetArchiveBoundingBox(), ArchiveLocationInfo::GetArchiveDirectory(), PottsElement< DIM >::GetAspectRatio(), AbstractOdeSystemInformation::GetAttribute(), AbstractNonlinearElasticitySolver< DIM >::GetAverageStressPerElement(), CommandLineArguments::GetBoolCorrespondingToOption(), MixedDimensionMesh< ELEMENT_DIM, SPACE_DIM >::GetCableElement(), AbstractCardiacTissue< ELEMENT_DIM, SPACE_DIM >::GetCardiacCellOrHaloCell(), VtkMeshReader< ELEMENT_DIM, SPACE_DIM >::GetCellData(), CellRosetteRankWriter< ELEMENT_DIM, SPACE_DIM >::GetCellDataForVtkOutput(), HeartConfig::GetCellHeterogeneities(), CellId::GetCellId(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetCellUsingLocationIndex(), HoneycombMeshGenerator::GetCircularMesh(), HeartConfig::GetConductivityHeterogeneities(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetContainingElementIndex(), TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetContainingElementIndexWithInitialGuess(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetContainingElementIndices(), TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >::GetContainingElementIndices(), VertexBasedCellPopulation< SPACE_DIM >::GetDampingConstant(), AbstractCardiacProblem< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::GetDataReader(), AbstractOdeSystemInformation::GetDerivedQuantityIndex(), AbstractOdeSystemInformation::GetDerivedQuantityUnits(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetEdgeLength(), HeartConfig::GetElectrodeParameters(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetElementData(), TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >::GetElementData(), AbstractCvodeCellWithDataClamp::GetExperimentalVoltageAtTimeT(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetFaceData(), TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >::GetFaceData(), HeartConfig::GetFibreLength(), FibreReader< DIM >::GetFibreSheetAndNormalMatrix(), FibreReader< DIM >::GetFibreVector(), AbstractCardiacCellFactory< ELEMENT_DIM, SPACE_DIM >::GetHeartGeometryInformation(), CommandLineArguments::GetIndexForArgument(), PseudoEcgCalculator< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::GetIntegrand(), AbstractCardiacCellInterface::GetIntracellularCalciumConcentration(), HeartConfig::GetIonicModelRegions(), CellData::GetItem(), CellVecData::GetItem(), NonCachedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetJacobianForElement(), HeartConfig::GetKSPPreconditioner(), HeartConfig::GetKSPSolver(), CellProperties::GetLastCompleteMaxUpstrokeVelocity(), CellProperties::GetLastCompletePeakPotential(), CellId::GetMaxCellId(), CylindricalHoneycombMeshGenerator::GetMesh(), ToroidalHoneycombVertexMeshGenerator::GetMesh(), CylindricalHoneycombVertexMeshGenerator::GetMesh(), AbstractStimulusFactory< ELEMENT_DIM, SPACE_DIM >::GetMesh(), AbstractCardiacCellFactory< ELEMENT_DIM, SPACE_DIM >::GetMesh(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetMeshFileBaseName(), ArchiveLocationInfo::GetMeshFilename(), HeartConfig::GetMeshPartitioning(), AbstractPurkinjeCellFactory< ELEMENT_DIM, SPACE_DIM >::GetMixedDimensionMesh(), AbstractCardiacCellWithModifiers< CARDIAC_CELL >::GetModifier(), AbstractOnLatticeCellPopulation< DIM >::GetNeighbouringNodeIndices(), NodeBasedCellPopulation< DIM >::GetNeighbouringNodeIndices(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetNeighbouringNodeNotAlsoInElement(), VertexElementMap::GetNewIndex(), NodeMap::GetNewIndex(), NhsContractionModel::GetNextActiveTension(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextCableElementData(), VtkMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextCableElementData(), AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextElementData(), PottsMeshReader< SPACE_DIM >::GetNextElementData(), VertexMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextElementData(), VtkMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextElementData(), VertexMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextElementDataWithFaces(), AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextFaceData(), VtkMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextFaceData(), TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextItemFromStream(), PottsMeshReader< SPACE_DIM >::GetNextLineFromStream(), VertexMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextLineFromStream(), TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextLineFromStream(), AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextNode(), PottsMeshReader< SPACE_DIM >::GetNextNode(), VertexMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextNode(), VtkMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextNode(), Warnings::GetNextWarningMessage(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNode(), TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNode(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetNodeOrHaloNode(), HeartGeometryInformation< SPACE_DIM >::GetNodesAtSurface(), NonlinearElasticityTools< DIM >::GetNodesByComponentValue(), NodeBasedCellPopulation< DIM >::GetNodesWithinNeighbourhoodRadius(), CommandLineArguments::GetNumberOfArgumentsForOption(), AbstractCardiacCell::GetNumSlowValues(), AbstractParameterisedSystem< VECTOR >::GetParameter(), AbstractOdeSystemInformation::GetParameterIndex(), AbstractOdeSystemInformation::GetParameterUnits(), CellBasedPdeHandler< DIM >::GetPdeSolution(), CellBasedPdeHandler< DIM >::GetPdeSolutionAtPoint(), VtkMeshReader< ELEMENT_DIM, SPACE_DIM >::GetPointData(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetProcessRegion(), CellPropertyCollection::GetProperty(), AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetRawDataFromFile(), NodeBasedCellPopulation< DIM >::GetReceivedCells(), ObjectCommunicator< CLASS >::GetRecvObject(), FileFinder::GetRelativePath(), HeartConfig::GetRelativeTolerance(), MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetRestLength(), HeartConfig::GetSheetDimensions(), HeartConfig::GetSlabDimensions(), AbstractCardiacCell::GetSlowValues(), AbstractParameterisedSystem< VECTOR >::GetStateVariable(), AbstractOdeSystemInformation::GetStateVariableIndex(), AbstractOdeSystemInformation::GetStateVariableUnits(), HeartConfig::GetStimuli(), AbstractLookupTableCollection::GetTableIndex(), CellProperties::GetTimeAtLastCompleteMaxUpstrokeVelocity(), Cell::GetTimeUntilDeath(), AbstractCardiacProblem< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::GetTissue(), FibreReader< DIM >::GetTokensAtNextLine(), ColumnDataReader::GetUnlimitedDimensionValues(), AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetUnsignedAttribute(), CommandLineArguments::GetUnsignedCorrespondingToOption(), CommandLineArguments::GetValueCorrespondingToOption(), ColumnDataReader::GetValues(), OdeSolution::GetVariableAtIndex(), Hdf5DataWriter::GetVariableByName(), Hdf5DataReader::GetVariableOverNodes(), Hdf5DataReader::GetVariableOverTime(), Hdf5DataReader::GetVariableOverTimeOverMultipleNodes(), HeartConfig::GetVersionFromNamespace(), StokesFlowProblemDefinition< DIM >::GetViscosity(), MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetVoronoiEdgeLength(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetVoronoiElementIndexCorrespondingToDelaunayNodeIndex(), NonCachedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetWeightedDirectionForElement(), WntConcentration< DIM >::GetWntGradient(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::HandleHighOrderJunctions(), Hdf5DataWriter::Hdf5DataWriter(), HeartConfigRelatedCellFactory< SPACE_DIM >::HeartConfigRelatedCellFactory(), HeartGeometryInformation< SPACE_DIM >::HeartGeometryInformation(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::IdentifySwapType(), PlaneBoundaryCondition< ELEMENT_DIM, SPACE_DIM >::ImposeBoundaryCondition(), IncompressibleNonlinearElasticitySolver< DIM >::IncompressibleNonlinearElasticitySolver(), AxisymmetricConductivityTensors< ELEMENT_DIM, SPACE_DIM >::Init(), OrthotropicConductivityTensors< ELEMENT_DIM, SPACE_DIM >::Init(), AbstractCardiacMechanicsSolver< ELASTICITY_SOLVER, DIM >::Initialise(), CellCycleModelOdeSolver< CELL_CYCLE_MODEL, BackwardEulerIvpOdeSolver >::Initialise(), CardiacElectroMechanicsProblem< DIM, ELEC_PROB_DIM >::Initialise(), AbstractCardiacProblem< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::Initialise(), CellBasedPdeHandler< DIM >::InitialiseCellPdeElementMap(), AbstractDynamicLinearPdeSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::InitialiseHdf5Writer(), AbstractCardiacProblem< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::InitialiseWriter(), FileFinder::IsEmpty(), AbstractCardiacCell::IsFastOnly(), IsolatedLabelledCellKiller< DIM >::IsolatedLabelledCellKiller(), LinearSystem::LinearSystem(), AbstractCardiacProblem< DIM, DIM, 1 >::load(), CellMLLoader::LoadCellMLFile(), MemfemMeshReader< ELEMENT_DIM, SPACE_DIM >::MemfemMeshReader(), NodePartitioner< ELEMENT_DIM, SPACE_DIM >::MetisLibraryPartitioning(), CardiacSimulationArchiver< PROBLEM_CLASS >::Migrate(), MooneyRivlinMaterialLaw< DIM >::MooneyRivlinMaterialLaw(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::MoveMergeNode(), AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::MoveOntoNextDataset(), NodeBasedCellPopulation< DIM >::NonBlockingSendCellsToNeighbourProcesses(), OffLatticeSimulation< ELEMENT_DIM, SPACE_DIM >::OffLatticeSimulation(), OnLatticeSimulation< DIM >::OnLatticeSimulation(), CmguiMeshWriter< ELEMENT_DIM, SPACE_DIM >::OpenElementFiles(), PottsMeshReader< SPACE_DIM >::OpenElementsFile(), VertexMeshReader< ELEMENT_DIM, SPACE_DIM >::OpenElementsFile(), TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >::OpenElementsFile(), TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >::OpenFacesFile(), Hdf5DataWriter::OpenFile(), GmshMeshReader< ELEMENT_DIM, SPACE_DIM >::OpenFiles(), PottsMeshReader< SPACE_DIM >::OpenNodeFile(), VertexMeshReader< ELEMENT_DIM, SPACE_DIM >::OpenNodeFile(), TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >::OpenNodeFile(), OutputFileHandler::OpenOutputFile(), CellBasedPdeHandler< DIM >::OpenResultsFiles(), AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::operator[](), ChastePoint< 0 >::operator[](), OutputFileHandler::OutputFileHandler(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformT1Swap(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformT2Swap(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformT3Swap(), PolynomialMaterialLaw3d::PolynomialMaterialLaw3d(), PottsMesh< DIM >::PottsMesh(), BidomainProblem< DIM >::PreSolveChecks(), ExtendedBidomainProblem< DIM >::PreSolveChecks(), AbstractCardiacProblem< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::PreSolveChecks(), StreeterFibreGenerator< SPACE_DIM >::PreWriteCalculations(), FileFinder::PrivateRemove(), HeartGeometryInformation< SPACE_DIM >::ProcessLine(), Hdf5DataWriter::PutStripedVector(), Hdf5DataWriter::PutUnlimitedVariable(), ColumnDataWriter::PutVariable(), ParallelColumnDataWriter::PutVector(), Hdf5DataWriter::PutVector(), RandomCellKiller< DIM >::RandomCellKiller(), HeartConfig::ReadFile(), GmshMeshReader< ELEMENT_DIM, SPACE_DIM >::ReadHeaders(), TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >::ReadHeaders(), AbstractPurkinjeCellFactory< ELEMENT_DIM, SPACE_DIM >::ReadJunctionsFile(), TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ReadNodesPerProcessorFile(), FibreReader< DIM >::ReadNumLinesOfDataFromFile(), ColumnDataReader::ReadValueFromFile(), XmlTools::ReadXmlFile(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::RefineElement(), AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::RefreshJacobian(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::ReMesh(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::ReMesh(), Node< SPACE_DIM >::RemoveBoundaryElement(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::RemoveCellUsingLocationIndex(), Node< SPACE_DIM >::RemoveElement(), CellPropertyCollection::RemoveProperty(), AbstractElement< ELEMENT_DIM, SPACE_DIM >::ReplaceNode(), PetscTools::ReplicateException(), GenericEventHandler< 11, MeshEventHandler >::ReportImpl(), AbstractElement< ELEMENT_DIM, SPACE_DIM >::rGetElementAttributes(), AbstractCardiacTissue< ELEMENT_DIM, SPACE_DIM >::rGetExtracellularConductivityTensor(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::rGetNodePermutation(), LinearSystem::rGetPrecondMatrix(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::RotateX(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::RotateY(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::RotateZ(), CardiacSimulation::Run(), AbstractSteadyStateRunner::RunToSteadyState(), CardiacSimulationArchiver< PROBLEM_CLASS >::Save(), AbstractMaterialLaw< DIM >::ScaleMaterialParameters(), NodeBasedCellPopulation< DIM >::SendCellsToNeighbourProcesses(), LogFile::Set(), Cell::SetAncestor(), AbstractParameterisedSystem< VECTOR >::SetAnyVariable(), StreeterFibreGenerator< SPACE_DIM >::SetApexToBase(), ElectroMechanicsProblemDefinition< DIM >::SetApplyAnisotropicCrossFibreTension(), Cell::SetCellProliferativeType(), AxisymmetricConductivityTensors< ELEMENT_DIM, SPACE_DIM >::SetConstantConductivities(), AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::SetConstantConductivities(), AbstractCardiacMechanicsSolver< ELASTICITY_SOLVER, DIM >::SetConstantFibreSheetDirections(), WntConcentration< DIM >::SetConstantWntValueForTesting(), WntConcentration< DIM >::SetCryptLength(), AbstractParameterisedSystem< VECTOR >::SetDefaultInitialCondition(), AbstractParameterisedSystem< VECTOR >::SetDefaultInitialConditions(), AbstractCellCycleModel::SetDimension(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::SetDistributedVectorFactory(), AbstractCardiacMechanicsSolver< ELASTICITY_SOLVER, DIM >::SetFineCoarseMeshPair(), AbstractExtendedBidomainSolver< ELEMENT_DIM, SPACE_DIM >::SetFixedExtracellularPotentialNodes(), AbstractBidomainSolver< ELEMENT_DIM, SPACE_DIM >::SetFixedExtracellularPotentialNodes(), DistributedVectorFactory::SetFromFactory(), ExtendedBidomainProblem< DIM >::SetGgapHeterogeneities(), HeartConfig::SetKSPPreconditioner(), HeartConfig::SetKSPSolver(), AbstractSteadyStateRunner::SetMaxNumPaces(), AbstractPurkinjeCellFactory< ELEMENT_DIM, SPACE_DIM >::SetMesh(), HeartConfig::SetMeshPartitioning(), AbstractCardiacCellWithModifiers< CARDIAC_CELL >::SetModifier(), Cell::SetMutationState(), AbstractOnLatticeCellPopulation< DIM >::SetNode(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::SetNode(), TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >::SetNodePermutation(), LinearSystem::SetNullBasis(), ElectroMechanicsProblemDefinition< DIM >::SetNumIncrementsForInitialDeformation(), CardiacElectroMechanicsProblem< DIM, ELEC_PROB_DIM >::SetOutputDeformationGradientsAndStress(), VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >::SetParallelFiles(), AbstractParameterisedSystem< VECTOR >::SetParameter(), PoleZeroMaterialLaw< DIM >::SetParameters(), FileFinder::SetPath(), AbstractOdeSystemForCoupledPdeSystem::SetPdeSolution(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::SetProtorosetteFormationProbability(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::SetProtorosetteResolutionProbabilityPerTimestep(), NodeAttributes< SPACE_DIM >::SetRadius(), MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::SetRestLength(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::SetRosetteResolutionProbabilityPerTimestep(), AbstractExtendedBidomainSolver< ELEMENT_DIM, SPACE_DIM >::SetRowForAverageOfPhiZeroed(), AbstractBidomainSolver< ELEMENT_DIM, SPACE_DIM >::SetRowForAverageOfPhiZeroed(), S1S2Stimulus::SetS2ExperimentPeriodIndex(), AbstractCardiacCell::SetSlowValues(), AbstractCardiacCell::SetState(), AbstractParameterisedSystem< VECTOR >::SetStateVariable(), AbstractParameterisedSystem< VECTOR >::SetStateVariables(), AbstractLookupTableCollection::SetTableProperties(), AbstractDynamicLinearPdeSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::SetTimes(), AbstractDynamicLinearPdeSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::SetTimeStep(), HeartConfig::SetTissueAndBathIdentifiers(), WntConcentration< DIM >::SetType(), AbstractFileComparison::Setup(), Cylindrical2dNodesOnlyMesh::SetUpBoxCollection(), CvodeAdaptor::SetupCvode(), AbstractCvodeSystem::SetupCvode(), DistributedBoxCollection< DIM >::SetupLocalBoxesHalfOnly(), AbstractTargetAreaModifier< DIM >::SetupSolve(), AbstractCardiacMechanicsSolver< ELASTICITY_SOLVER, DIM >::SetVariableFibreSheetDirections(), AbstractContinuumMechanicsSolver< DIM >::SetWriteOutput(), SimpleDataWriter::SimpleDataWriter(), CardiacNewtonSolver< SIZE, CELLTYPE >::Solve(), SimplePetscNonlinearSolver::Solve(), SimpleNewtonNonlinearSolver::Solve(), AbstractOneStepIvpOdeSolver::Solve(), AbstractDynamicLinearPdeSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::Solve(), RungeKuttaFehlbergIvpOdeSolver::Solve(), AbstractNonlinearAssemblerSolverHybrid< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::Solve(), CvodeAdaptor::Solve(), LinearSystem::Solve(), AbstractCellBasedSimulation< ELEMENT_DIM, SPACE_DIM >::Solve(), AbstractIvpOdeSolver::SolveAndUpdateStateVariable(), LinearParabolicPdeSystemWithCoupledOdeSystemSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::SolveAndWriteResultsToFile(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::SolveBoundaryElementMapping(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::SolveElementMapping(), NodesOnlyMesh< SPACE_DIM >::SolveNodeMapping(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::SolveNodeMapping(), AbstractNonlinearElasticitySolver< DIM >::SolveNonSnes(), AbstractNonlinearElasticitySolver< DIM >::SolveSnes(), CellPropertyRegistry::SpecifyOrdering(), SphereGeometryBoundaryCondition< DIM >::SphereGeometryBoundaryCondition(), Cell::StartApoptosis(), T2SwapCellKiller< DIM >::T2SwapCellKiller(), AbstractNonlinearElasticitySolver< DIM >::TakeNewtonStep(), CommandLineArguments::TestOptionFormat(), TimeStepper::TimeStepper(), FemlabMeshReader< ELEMENT_DIM, SPACE_DIM >::TokenizeStringsToDoubles(), TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >::TrianglesMeshReader(), AbstractCvodeCellWithDataClamp::TurnOnDataClamp(), ContactInhibitionCellCycleModel::UpdateCellCyclePhase(), AbstractOdeBasedCellCycleModel::UpdateCellCyclePhase(), CaBasedCellPopulation< DIM >::UpdateCellLocations(), AbstractCellBasedSimulation< ELEMENT_DIM, SPACE_DIM >::UpdateCellPopulation(), AbstractCentreBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::UpdateNodeLocations(), OffLatticeSimulation< ELEMENT_DIM, SPACE_DIM >::UpdateNodePositions(), HeartConfig::UpdateParametersFromResumeSimulation(), AbstractNonlinearElasticitySolver< DIM >::UpdateSolutionUsingLineSearch(), AbstractCardiacCellInterface::UseCellMLDefaultStimulus(), CellBasedPdeHandler< DIM >::UseCoarsePdeMesh(), NodeBasedCellPopulationWithParticles< DIM >::Validate(), MeshBasedCellPopulationWithGhostNodes< DIM >::Validate(), VertexBasedCellPopulation< SPACE_DIM >::Validate(), PottsBasedCellPopulation< DIM >::Validate(), MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::Validate(), SolidMechanicsProblemDefinition< DIM >::Validate(), NodeBasedCellPopulation< DIM >::Validate(), ContinuumMechanicsProblemDefinition< DIM >::Validate(), ElectroMechanicsProblemDefinition< DIM >::Validate(), VanLeeuwen2009WntSwatCellCycleOdeSystem::VanLeeuwen2009WntSwatCellCycleOdeSystem(), PlaneBoundaryCondition< ELEMENT_DIM, SPACE_DIM >::VerifyBoundaryCondition(), CellCycleModelProteinConcentrationsWriter< ELEMENT_DIM, SPACE_DIM >::VisitCell(), VoronoiVertexMeshGenerator::VoronoiVertexMeshGenerator(), VtkMeshReader< ELEMENT_DIM, SPACE_DIM >::VtkMeshReader(), VtkNonlinearElasticitySolutionWriter< DIM >::Write(), HeartConfig::Write(), AbstractNonlinearElasticitySolver< DIM >::WriteCurrentAverageElementStresses(), CmguiDeformedSolutionsWriter< DIM >::WriteDeformationPositions(), XdmfMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFiles(), XdmfMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFilesUsingMesh(), and OdeSolution::WriteToFile().

#define EXPECT0 (   cmd,
  arg 
)
Value:
{ \
std::string _arg(arg); \
int retcode = cmd(_arg.c_str()); \
if (retcode != 0) { \
EXCEPTION("Error executing command: " #cmd "(" + _arg + ")"); \
} }
#define EXCEPTION(message)
Definition: Exception.hpp:143
Note
This macro is deprecated.

Handy for calling functions like system which return non-zero on error. Throws if an error occurs.

Note
DO NOT use this macro within an if (PetscTools::AmMaster) block, as then you'll get deadlock if an exception is thrown when running in parallel! (Unless the block is wrapped in a try-catch and exception replication handler.) Instead, use ABORT_IF_NON0.
Parameters
cmdcommand to call
argits argument (will be converted to std::string)

Definition at line 254 of file Exception.hpp.

Referenced by PetscSetupUtils::CommonSetup(), and CellMLToSharedLibraryConverter::ConvertCellmlToSo().

#define EXPECT_NON0 (   cmd,
  arg 
)
Value:
{ \
std::string _arg = (arg); \
int ret = cmd(_arg.c_str()); \
if (ret == 0) { \
EXCEPTION("Command: " #cmd "(" + _arg + ") succeeded and it shouldn't have"); \
} }
#define EXCEPTION(message)
Definition: Exception.hpp:143
Note
This macro is deprecated, and no longer used by core code.

Handy for calling functions like system which return non-zero on error. This time we expect failure; throws if the command succeeds.

Parameters
cmdcommand to call
argits argument (will be converted to std::string)

Definition at line 301 of file Exception.hpp.

#define IGNORE_RET (   cmd,
  arg 
)
Value:
{ \
std::string _arg = (arg); \
int ret = cmd(_arg.c_str()); \
ret = ret; \
}
Note
This macro is deprecated.

Handy for calling functions like system which return non-zero on error. This version ignores the return code, in case you don't care about errors for some reason...

Parameters
cmdcommand to call
argits argument (will be converted to std::string)

Definition at line 316 of file Exception.hpp.

Referenced by CellMLToSharedLibraryConverter::ConvertCellmlToSo().

#define NEVER_REACHED   TERMINATE("Should have been impossible to reach this line of code"); exit(EXIT_FAILURE)

Use for control paths that will never be executed, just to make sure they aren't.

The exit statement at the end of NEVER_REACHED is not really needed but prevents g++ from complaining about uninitialised variables when you have code that looks like:

RelativeTo::Value relative_to;
switch (rPath.relative_to())
{
case cp::relative_to_type::cwd:
relative_to = RelativeTo::CWD;
break;
case cp::relative_to_type::chaste_test_output:
break;
case cp::relative_to_type::chaste_source_root:
break;
case cp::relative_to_type::absolute:
relative_to = RelativeTo::Absolute;
break;
default:
break;
}

relative_to is considered potentially uninitialised in the default branch unless the compiler finds a exit, assert or throw statement.

Definition at line 206 of file Exception.hpp.

Referenced by AbstractCellMutationState::AbstractCellMutationState(), AbstractCellProliferativeType::AbstractCellProliferativeType(), AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::AppendLocalDataToFiles(), ContinuumMechanicsNeumannBcsAssembler< DIM >::AssembleOnBoundaryElement(), AbstractNonlinearElasticitySolver< DIM >::AssembleOnBoundaryElement(), AbstractNonlinearElasticitySolver< DIM >::AssembleOnBoundaryElementForPressureOnDeformedBc(), IncompressibleNonlinearElasticitySolver< DIM >::AssembleOnElement(), CompressibleNonlinearElasticitySolver< DIM >::AssembleOnElement(), AbstractContinuumMechanicsAssembler< DIM, CAN_ASSEMBLE_VECTOR, CAN_ASSEMBLE_MATRIX >::AssembleOnElement(), BoxCollection< DIM >::BoxCollection(), OffLatticeSimulation< ELEMENT_DIM, SPACE_DIM >::CalculateCellDivisionVector(), DistributedBoxCollection< DIM >::CalculateCoordinateIndices(), AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::CalculateWeightedDirection(), SloughingCellKiller< DIM >::CheckAndLabelCellsForApoptosisOrDeath(), AbstractCardiacCell::CheckForArchiveFix(), AbstractStimulusFunction::Clear(), CmguiDeformedSolutionsWriter< DIM >::CmguiDeformedSolutionsWriter(), CmguiMeshWriter< ELEMENT_DIM, SPACE_DIM >::CmguiMeshWriter(), VtkMeshReader< ELEMENT_DIM, SPACE_DIM >::CommonConstructor(), QuadraticBasisFunction< ELEMENT_DIM >::ComputeBasisFunction(), QuadraticBasisFunction< ELEMENT_DIM >::ComputeBasisFunctionDerivative(), AbstractFeCableIntegralAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, CAN_ASSEMBLE_VECTOR, CAN_ASSEMBLE_MATRIX, INTERPOLATION_LEVEL >::ComputeCableMatrixTerm(), AbstractFeCableIntegralAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, CAN_ASSEMBLE_VECTOR, CAN_ASSEMBLE_MATRIX, INTERPOLATION_LEVEL >::ComputeCableVectorTerm(), DistanceMapCalculator< ELEMENT_DIM, SPACE_DIM >::ComputeDistanceMap(), CellwiseSourcePde< DIM >::ComputeLinearInUCoeffInSourceTerm(), AbstractFeVolumeIntegralAssembler< DIM, DIM, 2, false, true, CARDIAC >::ComputeMatrixTerm(), AbstractFeSurfaceIntegralAssembler< ELEMENT_DIM, SPACE_DIM, 2 >::ComputeVectorSurfaceTerm(), AbstractFeVolumeIntegralAssembler< DIM, DIM, 2, false, true, CARDIAC >::ComputeVectorTerm(), MixedDimensionMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), AbstractConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >::Converge(), Cylindrical2dMesh::CorrectNonPeriodicMesh(), HeartConfigRelatedCellFactory< SPACE_DIM >::CreateCellWithIntracellularStimulus(), LabelBasedContractionCellFactory< DIM >::CreateContractionCellForElement(), BidomainTissue< SPACE_DIM >::CreateExtracellularConductivityTensors(), ExtendedBidomainTissue< SPACE_DIM >::CreateExtracellularConductivityTensors(), AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::CreateFilesWithHeaders(), AbstractCardiacTissue< ELEMENT_DIM, SPACE_DIM >::CreateIntracellularConductivityTensor(), ExtendedBidomainTissue< SPACE_DIM >::CreateIntracellularConductivityTensorSecondCell(), MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::CreateVoronoiTessellation(), Determinant(), CardiacElectroMechanicsProblem< DIM, ELEC_PROB_DIM >::DetermineWatchedNodes(), FakeBathCell::EvaluateYDerivatives(), AbstractRushLarsenCardiacCell::EvaluateYDerivatives(), AbstractGeneralizedRushLarsenCardiacCell::EvaluateYDerivatives(), AbstractBackwardEulerCardiacCell< SIZE >::EvaluateYDerivatives(), AbstractBackwardEulerCardiacCell< 0u >::EvaluateYDerivatives(), HeartConfigRelatedCellFactory< SPACE_DIM >::FillInCellularTransmuralAreas(), PottsElement< DIM >::GetAspectRatio(), ContinuumMechanicsProblemDefinition< DIM >::GetBodyForce(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetCellCyclePhaseCount(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetCentroidOfElement(), HeartGeometryInformation< SPACE_DIM >::GetDistanceToEndo(), AbstractNonlinearElasticitySolver< DIM >::GetElementCentroidStrain(), GmshMeshReader< ELEMENT_DIM, SPACE_DIM >::GetElementData(), GmshMeshReader< ELEMENT_DIM, SPACE_DIM >::GetFaceData(), StreeterFibreGenerator< SPACE_DIM >::GetFibreMaxAngle(), BoxCollection< DIM >::GetGridIndices(), HeartConfig::GetInterNodeSpace(), HeartConfig::GetIonicModelRegions(), BoxCollection< DIM >::GetLinearIndex(), GmshMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextCableElementData(), VtkMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextFaceData(), GmshMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNode(), GmshMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumCableElementAttributes(), GmshMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumCableElements(), CellBasedPdeHandler< DIM >::GetPdeSolutionAtPoint(), HeartConfig::GetStimuli(), MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetVolumeOfCell(), AbstractWntOdeBasedCellCycleModel::GetWntLevel(), SimpleWntCellCycleModel::GetWntLevel(), SimpleWntCellCycleModel::GetWntType(), SpaceConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >::GiveUpConvergence(), HeartFileFinder::HeartFileFinder(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::IdentifySwapType(), PlaneBoundaryCondition< ELEMENT_DIM, SPACE_DIM >::ImposeBoundaryCondition(), CardiacElectroMechanicsProblem< DIM, ELEC_PROB_DIM >::Initialise(), AbstractCardiacProblem< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::Initialise(), OperatorSplittingMonodomainSolver< ELEMENT_DIM, SPACE_DIM >::InitialiseForSolve(), AbstractCardiacCellWithModifiers< CARDIAC_CELL >::load(), AbstractCardiacTissue< SPACE_DIM >::LoadCardiacCells(), ExtendedBidomainTissue< DIM >::LoadExtendedBidomainCells(), NodePartitioner< ELEMENT_DIM, SPACE_DIM >::MetisLibraryPartitioning(), OffLatticeSimulation< ELEMENT_DIM, SPACE_DIM >::OffLatticeSimulation(), OnLatticeSimulation< DIM >::OutputAdditionalSimulationSetup(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::PerformT3Swap(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::PermuteNodes(), PottsMeshGenerator< DIM >::PottsMeshGenerator(), StreeterFibreGenerator< SPACE_DIM >::PreWriteCalculations(), RandomNumberGenerator::randMod(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::ReadNodesPerProcessorFile(), MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::rGetNodePairs(), AbstractCardiacTissue< SPACE_DIM >::save(), AbstractCardiacTissue< SPACE_DIM >::SaveCardiacCells(), ExtendedBidomainTissue< DIM >::SaveExtendedBidomainCells(), Hdf5DataWriter::SetChunkSize(), StochasticDurationGenerationBasedCellCycleModel::SetG1Duration(), AbstractSimpleCellCycleModel::SetG1Duration(), StochasticDurationCellCycleModel::SetG1Duration(), GammaDistributedStochasticDurationCellCycleModel::SetG1Duration(), ExponentiallyDistributedStochasticDurationGenerationBasedCellCycleModel::SetG1Duration(), SimpleWntCellCycleModel::SetG1Duration(), FileFinder::SetPath(), LinearSystem::SetPrecondMatrixIsDifferentFromLhs(), AbstractHdf5Access::SetUnlimitedDatasetId(), BoxCollection< DIM >::SetupAllLocalBoxes(), DistributedBoxCollection< DIM >::SetupAllLocalBoxes(), CellwiseDataGradient< DIM >::SetupGradients(), BoxCollection< DIM >::SetupLocalBoxes(), BoxCollection< DIM >::SetupLocalBoxesHalfOnly(), DistributedBoxCollection< DIM >::SetupLocalBoxesHalfOnly(), AbstractDynamicLinearPdeSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::Solve(), AbstractCardiacTissue< ELEMENT_DIM, SPACE_DIM >::SolveCellSystems(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::SplitEdge(), SubDeterminant(), SimpleWntCellCycleModel::UpdateCellCyclePhase(), CaBasedCellPopulation< DIM >::UpdateCellLocations(), OnLatticeSimulation< DIM >::UpdateCellPopulation(), CellBasedPdeHandler< DIM >::UseCoarsePdeMesh(), CaBasedCellPopulation< DIM >::Validate(), VectorProduct(), VtkNonlinearElasticitySolutionWriter< DIM >::Write(), AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFilesFooter(), CmguiMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteNodeFileHeader(), and CellBasedPdeHandler< DIM >::WritePdeSolution().

#define TERMINATE (   message)
Value:
do { \
std::stringstream msg_stream; \
msg_stream << message; \
Exception::Terminate(msg_stream.str(), __FILE__, __LINE__); \
} while (false)
static void Terminate(const std::string &rMessage, const std::string &rFilename, unsigned lineNumber)
Definition: Exception.cpp:118

Terminate execution safely, even when running in parallel. Use for level 4 errors: execution cannot continue from this point and hence should be terminated (even when running with NDEBUG).

Parameters
messageexplanatory message

Definition at line 168 of file Exception.hpp.

Referenced by OutputFileHandler::CopyFileTo(), AbstractBidomainSolver< ELEMENT_DIM, SPACE_DIM >::InitialiseForSolve(), OutputFileHandler::MakeFoldersAndReturnFullPath(), PCBlockDiagonal::PCBlockDiagonalCreate(), PCLDUFactorisation::PCLDUFactorisationCreate(), PCTwoLevelsBlockDiagonal::PCTwoLevelsBlockDiagonalCreate(), LinearSystem::SetPcType(), and LinearSystem::Solve().

Variable Documentation

const int INT_UNSET = INT_MAX

Use when initialising an int variable that doesn't have a sensible default value.

Definition at line 54 of file Exception.hpp.