#include <string>
#include <iostream>
#include <cfloat>
#include <climits>
#include <cstdlib>
#include <boost/preprocessor/stringize.hpp>
Go to the source code of this file.
Classes | |
class | Exception |
Defines | |
#define | EXCEPTION(message) throw Exception(message, __FILE__, __LINE__) |
#define | EXCEPT_IF_NOT(test) if (!(test)) EXCEPTION("Assertion tripped: " BOOST_PP_STRINGIZE(test)) |
#define | UNUSED_OPT(var) |
#define | EXPECT0(cmd, arg) |
#define | MPI_ABORT_IF_NON0_WITH_MSG(retcode, msg) |
#define | MPIABORTIFNON0(cmd, arg) |
#define | EXPECTNON0(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 |
Definition in file Exception.hpp.
#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 126 of file Exception.hpp.
Referenced by CellMLToSharedLibraryConverter::ConvertCellmlToSo().
#define EXCEPTION | ( | message | ) | throw Exception(message, __FILE__, __LINE__) |
Convenience macro for throwing an exception, in order to add file and line info.
message | the exception message |
Definition at line 115 of file Exception.hpp.
Referenced by AbstractCardiacProblem< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::AbstractCardiacProblem(), AbstractCellPopulation< DIM >::AbstractCellPopulation(), AbstractHdf5Converter< ELEMENT_DIM, SPACE_DIM >::AbstractHdf5Converter(), VertexCryptBoundaryForce< DIM >::AddForceContribution(), LinearSpringWithVariableSpringConstantsForce< DIM >::AddForceContribution(), CryptProjectionForce::AddForceContribution(), WelikyOsterForce< DIM >::AddForceContribution(), NagaiHondaForce< DIM >::AddForceContribution(), AbstractTwoBodyInteractionForce< DIM >::AddForceContribution(), QuadraticMesh< DIM >::AddNodesToBoundaryElements(), 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(), BasicBidomainSolver< ELEMENT_DIM, SPACE_DIM >::BasicBidomainSolver(), BasicMonodomainSolver< ELEMENT_DIM, SPACE_DIM >::BasicMonodomainSolver(), AbstractFunctionalCalculator< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::Calculate(), PropagationPropertiesCalculator::CalculateActionPotentialDuration(), CellProperties::CalculateActionPotentialDurations(), NhsModelWithBackwardSolver::CalculateCaTropAndZDerivatives(), BoxCollection< DIM >::CalculateContainingBox(), AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::CalculateJacobian(), CellProperties::CalculateProperties(), AbstractTetrahedralElement< ELEMENT_DIM, SPACE_DIM >::CalculateWeightedDirection(), CardiacElectroMechanicsProblem< DIM >::CardiacElectroMechanicsProblem(), CardiacSimulation::CardiacSimulation(), Cell::Cell(), ChasteCuboid< SPACE_DIM >::ChasteCuboid(), ChasteEllipsoid< SPACE_DIM >::ChasteEllipsoid(), AbstractBidomainSolver< ELEMENT_DIM, SPACE_DIM >::CheckCompatibilityCondition(), CellProperties::CheckExceededThreshold(), ColumnDataReader::CheckFiles(), XmlTransforms::CheckForIluPreconditioner(), HeartConfig::CheckResumeSimulationIsDefined(), CellProperties::CheckReturnedToThreshold(), HeartConfig::CheckSimulationIsDefined(), HeartConfig::CheckTimeSteps(), Hdf5DataWriter::CheckUnitsName(), ColumnDataWriter::CheckUnitsName(), Hdf5DataWriter::CheckVariableName(), ColumnDataWriter::CheckVariableName(), ColumnDataReader::ColumnDataReader(), ColumnDataWriter::ColumnDataWriter(), Hdf5DataReader::CommonConstructor(), CompressibleNonlinearElasticitySolver< DIM >::CompressibleNonlinearElasticitySolver(), FineCoarseMeshPair< DIM >::ComputeCoarseElementsForFineElementCentroids(), FineCoarseMeshPair< DIM >::ComputeCoarseElementsForFineNodes(), AbstractParameterisedSystem< VECTOR >::ComputeDerivedQuantities(), Electrodes< DIM >::ComputeElectrodesAreasAndCheckEquality(), AbstractCvodeCell::ComputeExceptVoltage(), FineCoarseMeshPair< DIM >::ComputeFineElementsAndWeightsForCoarseNodes(), FineCoarseMeshPair< DIM >::ComputeFineElementsAndWeightsForCoarseQuadPoints(), PoleZeroMaterialLaw< DIM >::ComputeStressAndStressDerivative(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructCuboid(), QuadraticMesh< DIM >::ConstructFromMeshReader(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructFromMeshReader(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructLinearMesh(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructRectangularMesh(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::ConstructRegularSlabMesh(), CellMLToSharedLibraryConverter::Convert(), CellMLToSharedLibraryConverter::ConvertCellmlToSo(), CmguiDeformedSolutionsWriter< DIM >::ConvertOutput(), OutputFileHandler::CopyFileTo(), QuadraticMesh< DIM >::CountAndCheckVertices(), HeartConfigRelatedCellFactory< SPACE_DIM >::CreateCellWithIntracellularStimulus(), AbstractNonlinearElasticitySolver< DIM >::CreateCmguiOutput(), CellBasedSimulationWithPdes< DIM >::CreateCoarsePdeMesh(), CvodeAdaptor::CvodeError(), AbstractCvodeCell::CvodeError(), CylindricalHoneycombMeshGenerator::CylindricalHoneycombMeshGenerator(), HeartConfig::DecideLocation(), AbstractCellProperty::DecrementCellCount(), Hdf5DataWriter::DefineFixedDimension(), ColumnDataWriter::DefineFixedDimension(), Hdf5DataWriter::DefineFixedDimensionUsingMatrix(), Hdf5DataWriter::DefineUnlimitedDimension(), ColumnDataWriter::DefineUnlimitedDimension(), Hdf5DataWriter::DefineVariable(), ColumnDataWriter::DefineVariable(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::DeleteBoundaryNodeAt(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::DeleteNode(), NodesOnlyMesh< SPACE_DIM >::DeleteNode(), HeartGeometryInformation< SPACE_DIM >::DetermineLayerForEachNode(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::DivideElementAlongGivenAxis(), ColumnDataWriter::DoAdvanceAlongUnlimitedDimension(), AbstractFeObjectAssembler< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM, CAN_ASSEMBLE_VECTOR, CAN_ASSEMBLE_MATRIX, INTERPOLATION_LEVEL >::DoAssemble(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::DumbNodePartitioning(), DynamicCellModelLoader::DynamicCellModelLoader(), Hdf5DataWriter::EndDefineMode(), ColumnDataWriter::EndDefineMode(), GenericEventHandler< 13, HeartEventHandler >::EndEventImpl(), NhsContractionModel::EvaluateYDerivatives(), ExplicitCardiacMechanicsSolver< ELASTICITY_SOLVER, DIM >::ExplicitCardiacMechanicsSolver(), ExponentialMaterialLaw< DIM >::ExponentialMaterialLaw(), FibreReader< DIM >::FibreReader(), GaussianQuadratureRule< ELEMENT_DIM >::GaussianQuadratureRule(), CellsGenerator< CELL_CYCLE_MODEL, DIM >::GenerateBasic(), StreeterFibreGenerator< SPACE_DIM >::GenerateOrthotropicFibreOrientation(), GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::GenericMeshReader(), 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(), ArchiveLocationInfo::GetArchiveDirectory(), AbstractOdeSystemInformation::GetAttribute(), MixedDimensionMesh< ELEMENT_DIM, SPACE_DIM >::GetCableElement(), AbstractCardiacTissue< ELEMENT_DIM, SPACE_DIM >::GetCardiacCellOrHaloCell(), VtkMeshReader< ELEMENT_DIM, SPACE_DIM >::GetCellData(), HeartConfig::GetCellHeterogeneities(), AbstractCellPopulation< DIM >::GetCellMutationStateCount(), AbstractCellPopulation< DIM >::GetCellUsingLocationIndex(), HeartConfig::GetConductivityHeterogeneities(), TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetContainingElementIndex(), TetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetContainingElementIndexWithInitialGuess(), TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >::GetContainingElementIndices(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetContainingElementIndices(), AbstractCardiacProblem< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::GetDataReader(), AbstractOdeSystemInformation::GetDerivedQuantityIndex(), AbstractOdeSystemInformation::GetDerivedQuantityUnits(), HeartConfig::GetElectrodeParameters(), TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >::GetElementData(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetElementData(), TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >::GetFaceData(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetFaceData(), HeartConfig::GetFibreLength(), HeartConfig::GetGradationForAdaptivity(), AbstractCardiacCellFactory< ELEMENT_DIM, SPACE_DIM >::GetHeartGeometryInformation(), PseudoEcgCalculator< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::GetIntegrand(), AbstractCardiacCell::GetIntracellularCalciumConcentration(), HeartConfig::GetIonicModelRegions(), NonCachedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetJacobianForElement(), HeartConfig::GetKSPPreconditioner(), HeartConfig::GetKSPSolver(), CellProperties::GetLastCompleteMaxUpstrokeVelocity(), CellProperties::GetLastCompletePeakPotential(), HeartConfig::GetMaxEdgeLengthForAdaptivity(), HeartConfig::GetMaxNodesForAdaptivity(), AbstractCardiacCellFactory< ELEMENT_DIM, SPACE_DIM >::GetMesh(), CylindricalHoneycombVertexMeshGenerator::GetMesh(), CylindricalHoneycombMeshGenerator::GetMesh(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetMeshFileBaseName(), ArchiveLocationInfo::GetMeshFilename(), HeartConfig::GetMeshPartitioning(), HeartConfig::GetMinEdgeLengthForAdaptivity(), AbstractCardiacCellWithModifiers< CARDIAC_CELL >::GetModifier(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetNeighbouringNodeNotAlsoInElement(), VertexElementMap::GetNewIndex(), NodeMap::GetNewIndex(), NhsContractionModel::GetNextActiveTension(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextCableElementData(), VertexMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextElementData(), VtkMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextElementData(), AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextElementData(), VertexMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextElementDataWithFaces(), VtkMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextFaceData(), AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextFaceData(), FibreReader< DIM >::GetNextFibreSheetAndNormalMatrix(), FibreReader< DIM >::GetNextFibreVector(), TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextItemFromStream(), VertexMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextLineFromStream(), TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextLineFromStream(), VertexMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextNode(), VtkMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextNode(), AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextNode(), Warnings::GetNextWarningMessage(), TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNode(), AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNode(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetNodeOrHaloNode(), HeartGeometryInformation< SPACE_DIM >::GetNodesAtSurface(), NonlinearElasticityTools< DIM >::GetNodesByComponentValue(), HeartConfig::GetNumberOfAdaptiveSweeps(), AbstractCardiacCell::GetNumSlowValues(), AbstractParameterisedSystem< VECTOR >::GetParameter(), AbstractOdeSystemInformation::GetParameterIndex(), AbstractOdeSystemInformation::GetParameterUnits(), VtkMeshReader< ELEMENT_DIM, SPACE_DIM >::GetPointData(), CellPropertyCollection::GetProperty(), AbstractCachedMeshReader< ELEMENT_DIM, SPACE_DIM >::GetRawDataFromFile(), HeartConfig::GetRelativeTolerance(), HeartConfig::GetSheetDimensions(), HeartConfig::GetSigmaForAdaptivity(), HeartConfig::GetSlabDimensions(), AbstractCardiacCell::GetSlowValues(), AbstractParameterisedSystem< VECTOR >::GetStateVariable(), AbstractOdeSystemInformation::GetStateVariableIndex(), AbstractOdeSystemInformation::GetStateVariableUnits(), HeartConfig::GetStimuli(), AbstractLookupTableCollection::GetTableIndex(), HeartConfig::GetTargetErrorForAdaptivity(), CellProperties::GetTimeAtLastCompleteMaxUpstrokeVelocity(), Cell::GetTimeUntilDeath(), FibreReader< DIM >::GetTokensAtNextLine(), ColumnDataReader::GetUnlimitedDimensionValues(), CommandLineArguments::GetUnsignedCorrespondingToOption(), CellwiseData< DIM >::GetValue(), CommandLineArguments::GetValueCorrespondingToOption(), ColumnDataReader::GetValues(), OdeSolution::GetVariableAtIndex(), Hdf5DataWriter::GetVariableByName(), Hdf5DataReader::GetVariableOverNodes(), Hdf5DataReader::GetVariableOverTime(), HeartConfig::GetVersionFromNamespace(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetVoronoiElementIndexCorrespondingToDelaunayNodeIndex(), NonCachedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetWeightedDirectionForElement(), WntConcentration< DIM >::GetWntGradient(), Hdf5DataWriter::Hdf5DataWriter(), HeartConfigRelatedCellFactory< SPACE_DIM >::HeartConfigRelatedCellFactory(), HeartGeometryInformation< SPACE_DIM >::HeartGeometryInformation(), HoneycombMeshGenerator::HoneycombMeshGenerator(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::IdentifySwapType(), ImplicitCardiacMechanicsSolver< ELASTICITY_SOLVER, DIM >::ImplicitCardiacMechanicsSolver(), PlaneBoundaryCondition< DIM >::ImposeBoundaryCondition(), OrthotropicConductivityTensors< ELEMENT_DIM, SPACE_DIM >::Init(), AxisymmetricConductivityTensors< ELEMENT_DIM, SPACE_DIM >::Init(), CardiacElectroMechanicsProblem< DIM >::Initialise(), AbstractCardiacProblem< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::Initialise(), CellCycleModelOdeSolver< CELL_CYCLE_MODEL, BackwardEulerIvpOdeSolver >::Initialise(), AbstractCardiacCell::IsFastOnly(), LinearSystem::LinearSystem(), AbstractOdeSystem::load(), AbstractCardiacProblem< ELEMENT_DIM, ELEMENT_DIM, 1 >::load(), MemfemMeshReader< ELEMENT_DIM, SPACE_DIM >::MemfemMeshReader(), CardiacSimulationArchiver< PROBLEM_CLASS >::Migrate(), MooneyRivlinMaterialLaw< DIM >::MooneyRivlinMaterialLaw(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::MoveMergeNode(), NonlinearElasticitySolver< DIM >::NonlinearElasticitySolver(), NumericFileComparison::NumericFileComparison(), VertexMeshReader< ELEMENT_DIM, SPACE_DIM >::OpenElementsFile(), TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >::OpenElementsFile(), TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >::OpenFacesFile(), VertexMeshReader< ELEMENT_DIM, SPACE_DIM >::OpenNodeFile(), TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >::OpenNodeFile(), OutputFileHandler::OpenOutputFile(), 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(), BidomainProblem< DIM >::PreSolveChecks(), AbstractCardiacProblem< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::PreSolveChecks(), HeartGeometryInformation< SPACE_DIM >::ProcessLine(), Hdf5DataWriter::PutStripedVector(), Hdf5DataWriter::PutUnlimitedVariable(), ColumnDataWriter::PutVariable(), ParallelColumnDataWriter::PutVector(), Hdf5DataWriter::PutVector(), RandomCellKiller< DIM >::RandomCellKiller(), HeartConfig::ReadFile(), TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >::ReadHeaders(), 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(), MutableVertexMesh< ELEMENT_DIM, SPACE_DIM >::ReMesh(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::ReMesh(), Node< SPACE_DIM >::RemoveBoundaryElement(), Node< SPACE_DIM >::RemoveElement(), CellPropertyCollection::RemoveProperty(), AbstractElement< ELEMENT_DIM, SPACE_DIM >::ReplaceNode(), PetscTools::ReplicateException(), GenericEventHandler< 13, HeartEventHandler >::ReportImpl(), AbstractCellPopulation< DIM >::rGetCellCyclePhaseCount(), AbstractCellPopulation< DIM >::rGetCellProliferativeTypeCount(), AbstractCardiacTissue< ELEMENT_DIM, SPACE_DIM >::rGetExtracellularConductivityTensor(), NodeBasedCellPopulation< DIM >::rGetNodePairs(), LinearSystem::rGetPrecondMatrix(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::RotateX(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::RotateY(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::RotateZ(), CardiacSimulation::Run(), CardiacSimulationArchiver< PROBLEM_CLASS >::Save(), AbstractMaterialLaw< DIM >::ScaleMaterialParameters(), LogFile::Set(), HeartConfig::SetAdaptivityParameters(), AbstractParameterisedSystem< VECTOR >::SetAnyVariable(), StreeterFibreGenerator< SPACE_DIM >::SetApexToBase(), CellwiseData< DIM >::SetCellPopulation(), 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(), AbstractBidomainSolver< ELEMENT_DIM, SPACE_DIM >::SetFixedExtracellularPotentialNodes(), DistributedVectorFactory::SetFromFactory(), HeartConfig::SetKSPPreconditioner(), HeartConfig::SetKSPSolver(), HeartConfig::SetMeshPartitioning(), AbstractCardiacCellWithModifiers< CARDIAC_CELL >::SetModifier(), Cell::SetMutationState(), MutableMesh< ELEMENT_DIM, SPACE_DIM >::SetNode(), TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >::SetNodePermutation(), LinearSystem::SetNullBasis(), CellwiseData< DIM >::SetNumCellsAndVars(), NodeBasedCellPopulation< DIM >::SetOutputCellVolumes(), VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >::SetParallelFiles(), AbstractParameterisedSystem< VECTOR >::SetParameter(), PoleZeroMaterialLaw< DIM >::SetParameters(), AbstractOdeSystemForCoupledPdeSystem::SetPdeSolution(), 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(), CvodeAdaptor::SetupCvode(), AbstractCvodeCell::SetupCvode(), CellwiseData< DIM >::SetValue(), AbstractCardiacMechanicsSolver< ELASTICITY_SOLVER, DIM >::SetVariableFibreSheetDirections(), AbstractNonlinearElasticitySolver< DIM >::SetWriteOutput(), SimpleDataWriter::SimpleDataWriter(), AbstractNonlinearElasticitySolver< DIM >::Solve(), AbstractNonlinearAssemblerSolverHybrid< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::Solve(), RungeKuttaFehlbergIvpOdeSolver::Solve(), CvodeAdaptor::Solve(), AbstractOneStepIvpOdeSolver::Solve(), SimplePetscNonlinearSolver::Solve(), SimpleNewtonNonlinearSolver::Solve(), LinearSystem::Solve(), CardiacNewtonSolver< SIZE, CELLTYPE >::Solve(), CellBasedSimulation< DIM >::Solve(), AbstractIvpOdeSolver::SolveAndUpdateStateVariable(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::SolveBoundaryElementMapping(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::SolveElementMapping(), DistributedTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::SolveNodeMapping(), CellBasedSimulationWithPdes< DIM >::SolvePdeUsingCoarseMesh(), CellPropertyRegistry::SpecifyOrdering(), Cell::StartApoptosis(), AbstractNonlinearElasticitySolver< DIM >::TakeNewtonStep(), SloughingCellKiller< DIM >::TestAndLabelCellsForApoptosisOrDeath(), TimeStepper::TimeStepper(), FemlabMeshReader< ELEMENT_DIM, SPACE_DIM >::TokenizeStringsToDoubles(), TrianglesMeshReader< ELEMENT_DIM, SPACE_DIM >::TrianglesMeshReader(), NodeBasedCellPopulation< DIM >::Update(), AbstractOdeBasedCellCycleModel::UpdateCellCyclePhase(), CellBasedSimulation< DIM >::UpdateCellPopulation(), CellBasedSimulation< DIM >::UpdateNodePositions(), HeartConfig::UpdateParametersFromResumeSimulation(), AbstractCardiacCellInterface::UseCellMLDefaultStimulus(), VertexBasedCellPopulation< DIM >::Validate(), NodeBasedCellPopulation< DIM >::Validate(), MeshBasedCellPopulationWithGhostNodes< DIM >::Validate(), MeshBasedCellPopulation< DIM >::Validate(), VanLeeuwen2009WntSwatCellCycleOdeSystem::VanLeeuwen2009WntSwatCellCycleOdeSystem(), PlaneBoundaryCondition< DIM >::VerifyBoundaryCondition(), VertexBasedCellPopulation< DIM >::VertexBasedCellPopulation(), VtkMeshReader< ELEMENT_DIM, SPACE_DIM >::VtkMeshReader(), HeartConfig::Write(), CmguiDeformedSolutionsWriter< DIM >::WriteDeformationPositions(), and OdeSolution::WriteToFile().
#define EXPECT0 | ( | cmd, | |||
arg | ) |
Value:
{ \ std::string _arg(arg); \ int ret = cmd(_arg.c_str()); \ if (ret != 0) { \ EXCEPTION("Error executing command: " #cmd "(" + _arg + ")"); \ } }
cmd | command to call | |
arg | its argument (will be converted to std::string) |
Definition at line 152 of file Exception.hpp.
Referenced by CellMLToSharedLibraryConverter::ConvertCellmlToSo(), AbstractConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >::DisplayRun(), and PetscSetup::setUpWorld().
#define EXPECTNON0 | ( | 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"); \ } }
cmd | command to call | |
arg | its argument (will be converted to std::string) |
Definition at line 190 of file Exception.hpp.
#define IGNORE_RET | ( | cmd, | |||
arg | ) |
Value:
{ \
std::string _arg = (arg); \
int ret = cmd(_arg.c_str()); \
ret = ret; \
}
cmd | command to call | |
arg | its argument (will be converted to std::string) |
Definition at line 203 of file Exception.hpp.
#define MPI_ABORT_IF_NON0_WITH_MSG | ( | retcode, | |||
msg | ) |
Value:
if (retcode != 0) { \
std::cerr << msg << std::endl << std::flush; \
MPI_Abort(PETSC_COMM_WORLD, -1); \
}
retcode | command return code | |
msg | error message to display |
Definition at line 166 of file Exception.hpp.
#define MPIABORTIFNON0 | ( | cmd, | |||
arg | ) |
Value:
{ \ std::string _arg(arg); \ int ret = cmd(_arg.c_str()); \ MPI_ABORT_IF_NON0_WITH_MSG(ret, "Error executing command: " #cmd "(" + _arg + ")") \ }
cmd | command to call | |
arg | its argument (will be converted to std::string) |
Definition at line 178 of file Exception.hpp.
Referenced by AbstractConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >::Converge(), OutputFileHandler::CopyFileTo(), HeartConfig::CopySchema(), CardiacSimulation::CreateAndRun(), OutputDirectoryFifoQueue::CreateNextDir(), OutputFileHandler::MakeFoldersAndReturnFullPath(), OutputFileHandler::OutputFileHandler(), AbstractTetrahedralMesh< SPACE_DIM, SPACE_DIM >::save(), and AbstractCardiacTissue< SPACE_DIM >::save().
#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 137 of file Exception.hpp.
const double DOUBLE_UNSET = DBL_MAX |
Use when initialising a double variable that doesn't have a sensible default value.
Definition at line 49 of file Exception.hpp.
Referenced by AbstractCvodeCell::Compute(), CellCycleModelOdeHandler::GetDt(), AbstractOdeBasedCellCycleModel::GetOdeStopTime(), NhsContractionModel::SetInputParameters(), Nash2004ContractionModel::SetInputParameters(), Kerchoffs2003ContractionModel::SetInputParameters(), and AbstractCvodeCell::SolveAndUpdateState().
const int INT_UNSET = INT_MAX |
Use when initialising an int variable that doesn't have a sensible default value.
Definition at line 47 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 45 of file Exception.hpp.
Referenced by CardiacElectroMechanicsProblem< DIM >::CardiacElectroMechanicsProblem(), CardiacElectroMechanicsProblem< DIM >::DetermineWatchedNodes(), AbstractCellPopulation< DIM >::GenerateCellResults(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetDelaunayNodeIndexCorrespondingToVoronoiElementIndex(), VertexMesh< ELEMENT_DIM, SPACE_DIM >::GetVoronoiElementIndexCorrespondingToDelaunayNodeIndex(), CellCycleModelOdeSolver< CELL_CYCLE_MODEL, BackwardEulerIvpOdeSolver >::Initialise(), CellCycleModelOdeSolver< CELL_CYCLE_MODEL, BackwardEulerIvpOdeSolver >::IsSetUp(), CellCycleModelOdeSolver< CELL_CYCLE_MODEL, BackwardEulerIvpOdeSolver >::Reset(), VertexBasedCellPopulation< DIM >::WriteVtkResultsToFile(), NodeBasedCellPopulation< DIM >::WriteVtkResultsToFile(), MeshBasedCellPopulationWithGhostNodes< DIM >::WriteVtkResultsToFile(), and MeshBasedCellPopulation< DIM >::WriteVtkResultsToFile().