Chaste
Release::2017.1
|
#include <string>
#include <sstream>
#include <cfloat>
#include <climits>
#include <cstdlib>
#include <boost/preprocessor/stringize.hpp>
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 |
Contains the Exception class, along with some macros that are widely used throughout the code.
Definition in file Exception.hpp.
#define ABORT_IF_NON0 | ( | cmd, | |
arg | |||
) |
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.
cmd | command to call |
arg | its argument (will be converted to std::string) |
Definition at line 287 of file Exception.hpp.
#define ABORT_IF_NON0_WITH_MSG | ( | retcode, | |
msg | |||
) |
Handy for calling functions like system which return non-zero on error. Terminate if the return code is non-zero, printing a suitable message.
retcode | command return code |
msg | error message to display |
Definition at line 270 of file Exception.hpp.
#define ABORT_IF_THROWS | ( | block | ) |
Convenience function to convert an exception thrown by a single process into termination of the entire program.
block | the 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 EXCEPT_IF_NOT | ( | test | ) | if (!(test)) EXCEPTION("Assertion tripped: " BOOST_PP_STRINGIZE(test)) |
Convenience macro for changing an assert into an exception - has the same calling semantics, but throws.
test | the test that must always be true. |
Definition at line 158 of file Exception.hpp.
Referenced by BoundaryConditionsContainer< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::ApplyPeriodicBcsToLinearProblem(), CellMLToSharedLibraryConverter::ConvertCellmlToSo(), MonodomainPurkinjeProblem< ELEMENT_DIM, SPACE_DIM >::CreateSolver(), TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetNearestElementIndex(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetNearestElementIndexFromTestElements(), FileFinder::GetParent(), AbstractCardiacTissue< ELEMENT_DIM, SPACE_DIM >::GetPurkinjeCell(), FileFinder::GetRelativePath(), CommandLineArguments::GetValueCorrespondingToOption(), NodeBasedCellPopulationWithParticles< DIM >::NodeBasedCellPopulationWithParticles(), Citations::Print(), AbstractCardiacTissue< ELEMENT_DIM, SPACE_DIM >::rGetPurkinjeCellsDistributed(), AbstractCardiacTissue< ELEMENT_DIM, SPACE_DIM >::rGetPurkinjeIionicCacheReplicated(), AbstractCardiacTissue< ELEMENT_DIM, SPACE_DIM >::rGetPurkinjeIntracellularStimulusCacheReplicated(), and NodeBasedCellPopulationWithParticles< DIM >::WriteVtkResultsToFile().
#define EXCEPTION | ( | message | ) |
Convenience macro for throwing an exception, in order to add file and line info.
message | the 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(), FarhadifarForce< DIM >::AddForceContribution(), AbstractTwoBodyInteractionForce< ELEMENT_DIM, SPACE_DIM >::AddForceContribution(), NagaiHondaForce< DIM >::AddForceContribution(), DiffusionForce< DIM >::AddForceContribution(), LinearSpringWithVariableSpringConstantsForce< DIM >::AddForceContribution(), CryptProjectionForce::AddForceContribution(), QuadraticMeshHelper< DIM >::AddNodesToBoundaryElements(), CellPropertyCollection::AddProperty(), AbstractCardiacCell::AdjustOutOfRangeSlowValues(), RungeKuttaFehlbergIvpOdeSolver::AdjustStepSize(), Hdf5DataWriter::AdvanceAlongUnlimitedDimension(), TimeStepper::AdvanceOneTimeStep(), BidomainProblem< DIM >::AnalyseMeshForBath(), OffLatticeSimulation< ELEMENT_DIM, SPACE_DIM >::ApplyBoundaries(), 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(), CryptCentreBasedDivisionRule< ELEMENT_DIM, SPACE_DIM >::CalculateCellDivisionVector(), ObsoleteBoxCollection< 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(), ParabolicBoxDomainPdeModifier< DIM >::ConstructBoundaryConditionsContainer(), 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(), AbstractCardiacCellFactory< ELEMENT_DIM, SPACE_DIM >::FillInCellularTransmuralAreas(), FileFinder::FindMatches(), FixedVertexBasedDivisionRule< SPACE_DIM >::FixedVertexBasedDivisionRule(), AbstractGeneralizedRushLarsenCardiacCell::ForceUseOfNumericalJacobian(), AbstractCvodeSystem::ForceUseOfNumericalJacobian(), GaussianQuadratureRule< 1 >::GaussianQuadratureRule(), GaussianQuadratureRule< ELEMENT_DIM >::GaussianQuadratureRule(), CellsGenerator< CELL_CYCLE_MODEL, DIM >::GenerateBasic(), CellCycleTimesGenerator::GenerateCellCycleTimeSequence(), 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(), AbstractCellPopulation< ELEMENT_DIM, SPACE_DIM >::GetCellCyclePhaseCount(), 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< DIM >::GetDampingConstant(), AbstractCardiacProblem< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::GetDataReader(), AbstractOdeSystemInformation::GetDerivedQuantityIndex(), AbstractOdeSystemInformation::GetDerivedQuantityUnits(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetEdgeLength(), GenericEventHandler< 11, MeshEventHandler >::GetElapsedTimeImpl(), 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(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetNeighbouringElementIndices(), 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(), CellCycleTimesGenerator::GetNextCellCycleTime(), 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(), VtkMeshReader< ELEMENT_DIM, SPACE_DIM >::GetPointData(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetProcessRegion(), CellPropertyCollection::GetProperty(), AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetRawDataFromFile(), 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(), MeshBasedCellPopulationWithGhostNodes< DIM >::GetTetrahedralMeshForPdeModifier(), CellProperties::GetTimeAtLastCompleteMaxUpstrokeVelocity(), CellProperties::GetTimeAtLastCompletePeakPotential(), 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(), AbstractDynamicLinearPdeSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::InitialiseHdf5Writer(), AbstractCardiacProblem< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::InitialiseWriter(), FileFinder::IsEmpty(), AbstractCardiacCell::IsFastOnly(), CryptShovingCaBasedDivisionRule::IsNodeOnBase(), ShovingCaBasedDivisionRule< SPACE_DIM >::IsNodeOnBoundary(), IsolatedLabelledCellKiller< DIM >::IsolatedLabelledCellKiller(), LinearSystem::LinearSystem(), AbstractCardiacProblem< ELEMENT_DIM, SPACE_DIM, 2 >::load(), CellMLLoader::LoadCellMLFile(), MemfemMeshReader< ELEMENT_DIM, SPACE_DIM >::MemfemMeshReader(), CardiacSimulationArchiver< PROBLEM_CLASS >::Migrate(), MonodomainPurkinjeCableAssembler< ELEMENT_DIM, SPACE_DIM >::MonodomainPurkinjeCableAssembler(), MonodomainPurkinjeSolver< ELEMENT_DIM, SPACE_DIM >::MonodomainPurkinjeSolver(), MooneyRivlinMaterialLaw< DIM >::MooneyRivlinMaterialLaw(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::MoveMergeNode(), AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::MoveOntoNextDataset(), 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(), 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(), AbstractOdeBasedCellCycleModel::ReadyToDivide(), 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(), LogFile::Set(), Hdf5DataWriter::SetAlignment(), 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(), DistributedVectorFactory::SetOriginalFactory(), 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(), CellCycleTimesGenerator::SetRate(), 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(), FixedSequenceCellCycleModel::SetStemCellG1Duration(), AbstractLookupTableCollection::SetTableProperties(), Hdf5DataWriter::SetTargetChunkSize(), AbstractDynamicLinearPdeSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::SetTimes(), AbstractDynamicLinearPdeSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::SetTimeStep(), HeartConfig::SetTissueAndBathIdentifiers(), FixedSequenceCellCycleModel::SetTransitCellG1Duration(), WntConcentration< DIM >::SetType(), AbstractFileComparison::Setup(), Cylindrical2dNodesOnlyMesh::SetUpBoxCollection(), CvodeAdaptor::SetupCvode(), AbstractCvodeSystem::SetupCvode(), DistributedBoxCollection< DIM >::SetupLocalBoxesHalfOnly(), EllipticGrowingDomainPdeModifier< DIM >::SetupSolve(), ParabolicGrowingDomainPdeModifier< 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(), AbstractOdeBasedPhaseBasedCellCycleModel::UpdateCellCyclePhase(), CaBasedCellPopulation< DIM >::UpdateCellLocations(), OffLatticeSimulation< ELEMENT_DIM, SPACE_DIM >::UpdateCellLocationsAndTopology(), AbstractCellBasedSimulation< ELEMENT_DIM, SPACE_DIM >::UpdateCellPopulation(), HeartConfig::UpdateParametersFromResumeSimulation(), AbstractNonlinearElasticitySolver< DIM >::UpdateSolutionUsingLineSearch(), SimpleTargetAreaModifier< DIM >::UpdateTargetAreaOfCell(), TargetAreaLinearGrowthModifier< DIM >::UpdateTargetAreaOfCell(), AbstractCardiacCellInterface::UseCellMLDefaultStimulus(), NodeBasedCellPopulationWithParticles< DIM >::Validate(), MeshBasedCellPopulationWithGhostNodes< DIM >::Validate(), PottsBasedCellPopulation< DIM >::Validate(), VertexBasedCellPopulation< 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(), CellPopulationElementWriter< ELEMENT_DIM, SPACE_DIM >::Visit(), VoronoiDataWriter< ELEMENT_DIM, SPACE_DIM >::Visit(), NodeVelocityWriter< ELEMENT_DIM, SPACE_DIM >::Visit(), CellPopulationAreaWriter< ELEMENT_DIM, SPACE_DIM >::Visit(), 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 | |||
) |
Handy for calling functions like system which return non-zero on error. Throws if an error occurs.
cmd | command to call |
arg | its 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 | |||
) |
Handy for calling functions like system which return non-zero on error. This time we expect failure; throws if the command succeeds.
cmd | command to call |
arg | its argument (will be converted to std::string) |
Definition at line 301 of file Exception.hpp.
#define IGNORE_RET | ( | cmd, | |
arg | |||
) |
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...
cmd | command to call |
arg | its 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:
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(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::CalculateAreaOfFace(), CryptCentreBasedDivisionRule< ELEMENT_DIM, SPACE_DIM >::CalculateCellDivisionVector(), RandomDirectionCentreBasedDivisionRule< ELEMENT_DIM, SPACE_DIM >::CalculateCellDivisionVector(), DistributedBoxCollection< DIM >::CalculateGlobalIndex(), DistributedBoxCollection< DIM >::CalculateGridIndices(), 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(), LinearBasisFunction< ELEMENT_DIM >::ComputeBasisFunction(), QuadraticBasisFunction< ELEMENT_DIM >::ComputeBasisFunctionDerivative(), MonodomainPurkinjeCableMassMatrixAssembler< ELEMENT_DIM, SPACE_DIM >::ComputeCableMatrixTerm(), AbstractFeCableIntegralAssembler< ELEMENT_DIM, SPACE_DIM, 2, false, true, NORMAL >::ComputeCableMatrixTerm(), AbstractFeCableIntegralAssembler< ELEMENT_DIM, SPACE_DIM, 2, false, true, NORMAL >::ComputeCableVectorTerm(), DistanceMapCalculator< ELEMENT_DIM, SPACE_DIM >::ComputeDistanceMap(), CellwiseSourceEllipticPde< DIM >::ComputeLinearInUCoeffInSourceTerm(), MonodomainPurkinjeVolumeMassMatrixAssembler< ELEMENT_DIM, SPACE_DIM >::ComputeMatrixTerm(), AbstractFeVolumeIntegralAssembler< DIM, DIM, 2, false, true, CARDIAC >::ComputeMatrixTerm(), CellwiseSourceParabolicPde< DIM >::ComputeSourceTerm(), AveragedSourceParabolicPde< DIM >::ComputeSourceTermAtNode(), 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(), NoCellCycleModel::CreateCellCycleModel(), 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(), AbstractBoxDomainPdeModifier< DIM >::GenerateFeMesh(), AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::GenerateListOfDatasets(), ImplicitCardiacMechanicsSolver< ELASTICITY_SOLVER, DIM >::GetActiveTensionAndTensionDerivs(), 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(), ObsoleteBoxCollection< DIM >::GetGridIndices(), HeartGeometryInformation< SPACE_DIM >::GetHeartRegion(), HeartConfig::GetInterNodeSpace(), HeartConfig::GetIonicModelRegions(), ObsoleteBoxCollection< 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(), 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(), MonodomainPurkinjeSolver< ELEMENT_DIM, SPACE_DIM >::InitialiseForSolve(), CryptShovingCaBasedDivisionRule::IsNodeOnBase(), ShovingCaBasedDivisionRule< SPACE_DIM >::IsNodeOnBoundary(), AbstractCardiacCellWithModifiers< CARDIAC_CELL >::load(), AbstractCardiacTissue< SPACE_DIM >::LoadCardiacCells(), ExtendedBidomainTissue< DIM >::LoadExtendedBidomainCells(), ObsoleteBoxCollection< DIM >::ObsoleteBoxCollection(), PopulationTestingForce< ELEMENT_DIM, SPACE_DIM >::OutputForceParameters(), 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(), MonodomainPurkinjeProblem< ELEMENT_DIM, SPACE_DIM >::serialize(), DistributedQuadraticMesh< DIM >::serialize(), AbstractSimplePhaseBasedCellCycleModel::SetG1Duration(), UniformG1GenerationalCellCycleModel::SetG1Duration(), ExponentialG1GenerationalCellCycleModel::SetG1Duration(), FixedSequenceCellCycleModel::SetG1Duration(), GammaG1CellCycleModel::SetG1Duration(), SimpleWntCellCycleModel::SetG1Duration(), FileFinder::SetPath(), LinearSystem::SetPrecondMatrixIsDifferentFromLhs(), AbstractHdf5Access::SetUnlimitedDatasetId(), ObsoleteBoxCollection< DIM >::SetupAllLocalBoxes(), DistributedBoxCollection< DIM >::SetupAllLocalBoxes(), CellwiseDataGradient< DIM >::SetupGradients(), ObsoleteBoxCollection< DIM >::SetupLocalBoxes(), ObsoleteBoxCollection< 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(), AbstractGrowingDomainPdeModifier< DIM >::UpdateCellData(), AbstractBoxDomainPdeModifier< DIM >::UpdateCellData(), CaBasedCellPopulation< DIM >::UpdateCellLocations(), AbstractOffLatticeCellPopulation< ELEMENT_DIM, SPACE_DIM >::UpdateNodeLocations(), CaBasedCellPopulation< DIM >::Validate(), VectorProduct(), VtkNonlinearElasticitySolutionWriter< DIM >::Write(), AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFilesFooter(), and CmguiMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteNodeFileHeader().
#define TERMINATE | ( | message | ) |
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).
message | explanatory message |
Definition at line 168 of file Exception.hpp.
Referenced by OutputFileHandler::CopyFileTo(), OutputFileHandler::MakeFoldersAndReturnFullPath(), PCBlockDiagonal::PCBlockDiagonalCreate(), PCLDUFactorisation::PCLDUFactorisationCreate(), PCTwoLevelsBlockDiagonal::PCTwoLevelsBlockDiagonalCreate(), LinearSystem::SetPcType(), and LinearSystem::Solve().
#define UNUSED_OPT | ( | var | ) |
This is to cope with NDEBUG causing variables to not be used, when they are only used in assert()s.
var | the "unused" variable |
Definition at line 216 of file Exception.hpp.
Referenced by VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >::AddPointData(), CalculateEigenvectorForSmallestNonzeroEigenvalue(), MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::CheckCellPointers(), Electrodes< DIM >::ComputeElectrodesAreasAndCheckEquality(), Cylindrical2dMesh::Cylindrical2dMesh(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetNeighbouringElementIndices(), Hdf5DataReader::GetVariableOverNodes(), Hdf5ToCmguiConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToCmguiConverter(), ParabolicBoxDomainPdeModifier< DIM >::SetupInitialSolutionVector(), CvodeAdaptor::Solve(), AbstractCvodeSystem::Solve(), and AbstractCardiacTissue< ELEMENT_DIM, SPACE_DIM >::SolveCellSystems().
const double DOUBLE_UNSET = DBL_MAX |
Use when initialising a double variable that doesn't have a sensible default value.
Definition at line 56 of file Exception.hpp.
Referenced by CellProperties::CalculateActionPotentialDurations(), AbstractCvodeCell::Compute(), AbstractCellWriter< ELEMENT_DIM, SPACE_DIM >::GetCellDataForVtkOutput(), CellCycleModelOdeHandler::GetDt(), AbstractCvodeCellWithDataClamp::GetExperimentalVoltageAtTimeT(), AbstractOdeBasedCellCycleModel::GetOdeStopTime(), AbstractOdeBasedPhaseBasedCellCycleModel::GetOdeStopTime(), SimulationTime::GetTime(), CellAppliedForceWriter< ELEMENT_DIM, SPACE_DIM >::GetVectorCellDataForVtkOutput(), AbstractCellWriter< ELEMENT_DIM, SPACE_DIM >::GetVectorCellDataForVtkOutput(), SimulationTime::IsStartTimeSetUp(), QuadraturePointsGroup< DIM >::QuadraturePointsGroup(), SimulationTime::ResetEndTimeAndNumberOfTimeSteps(), SimulationTime::SetEndTimeAndNumberOfTimeSteps(), Nash2004ContractionModel::SetInputParameters(), Kerchoffs2003ContractionModel::SetInputParameters(), NhsContractionModel::SetInputParameters(), SimulationTime::SetStartTime(), AbstractCellBasedSimulation< ELEMENT_DIM, SPACE_DIM >::Solve(), AbstractCvodeCell::SolveAndUpdateState(), LinearParabolicPdeSystemWithCoupledOdeSystemSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::SolveAndWriteResultsToFile(), ContactInhibitionCellCycleModel::UpdateCellCyclePhase(), SimpleTargetAreaModifier< DIM >::UpdateTargetAreaOfCell(), TargetAreaLinearGrowthModifier< DIM >::UpdateTargetAreaOfCell(), and AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::WriteInfoFile().
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.
const unsigned UNSIGNED_UNSET = UINT_MAX |
Use when initialising an unsigned variable that doesn't have a sensible default value.
Definition at line 52 of file Exception.hpp.
Referenced by CellProperties::CalculateActionPotentialDurations(), ExclusionCaBasedDivisionRule< SPACE_DIM >::CalculateDaughterNodeIndex(), ShovingCaBasedDivisionRule< SPACE_DIM >::CalculateDaughterNodeIndex(), CellId::CellId(), CardiacElectroMechanicsProblem< DIM, ELEC_PROB_DIM >::DetermineWatchedNodes(), MeshBasedCellPopulation< ELEMENT_DIM, SPACE_DIM >::DivideLongSprings(), NodePartitioner< ELEMENT_DIM, SPACE_DIM >::GeometricPartitioning(), Cell::GetAncestor(), CellAncestorWriter< ELEMENT_DIM, SPACE_DIM >::GetCellDataForVtkOutput(), CellId::GetCellId(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetDelaunayNodeIndexCorrespondingToVoronoiElementIndex(), CellId::GetMaxCellId(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetVoronoiElementIndexCorrespondingToDelaunayNodeIndex(), SimpleWntCellCycleModel::GetWntType(), CellCycleModelOdeSolver< CELL_CYCLE_MODEL, BackwardEulerIvpOdeSolver >::Initialise(), CellCycleModelOdeSolver< CELL_CYCLE_MODEL, BackwardEulerIvpOdeSolver >::IsSetUp(), AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::MoveOntoNextDataset(), CellCycleModelOdeSolver< CELL_CYCLE_MODEL, BackwardEulerIvpOdeSolver >::Reset(), AbstractConductivityModifier< DIM, DIM >::rGetModifiedConductivityTensor(), CellAncestor::serialize(), AbstractCellCycleModel::SetDimension(), CardiacElectroMechanicsProblem< DIM, ELEC_PROB_DIM >::Solve(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::SplitEdge(), and CellAncestorWriter< ELEMENT_DIM, SPACE_DIM >::VisitCell().