Go to the source code of this file.
Classes | |
| class | Sundance::InternalError |
| InternalError is thrown when an "impossible" case is detected in Sundance's internals. More... | |
| class | Sundance::RuntimeError |
| RuntimeError is an exception that occurs as a result of invalid user-level code. More... | |
| class | Sundance::BadSymbolicsError |
| BadSymbolicsError is thrown when a mathematically nonsensical expression is detected. More... | |
Namespaces | |
| namespace | Sundance |
Defines | |
| #define | SUNDANCE_ERROR7(msg) |
| #define | SUNDANCE_ERROR(msg) |
| #define | SUNDANCE_TRACE(e) |
| #define | SUNDANCE_TRACE_MSG(e, msg) |
| #define | SUNDANCE_BOUNDSCHECK(i, low, high, msg) |
| #define | SUNDANCE_CHECK_ARRAY_SIZE_MATCH(a1, a2) |
| #define SUNDANCE_BOUNDSCHECK | ( | i, | |
| low, | |||
| high, | |||
| msg | |||
| ) |
{ \
TEST_FOR_EXCEPTION( i < low || i > high, Sundance::RuntimeError, \
"Bounds violation: " << #i << "is out of range [" \
<< #low << ", " << #high << "]") \
}
Definition at line 81 of file SundanceExceptions.hpp.
| #define SUNDANCE_CHECK_ARRAY_SIZE_MATCH | ( | a1, | |
| a2 | |||
| ) |
{\
TEST_FOR_EXCEPTION(a1.size() != a2.size(), Sundance::RuntimeError, \
"Mismatched array sizes: size(" << #a1 << ")=" << a1.size() \
<< " size(" << #a2 << ")=" << a2.size() << ". Expected equal sizes");\
}
Definition at line 88 of file SundanceExceptions.hpp.
Referenced by Sundance::Assembler::convertToMonolithicVector().
| #define SUNDANCE_ERROR | ( | msg | ) |
{ \
TeuchosOStringStream omsg; \
omsg << __FILE__ << ":" << __LINE__ << ": " \
<< ": " << msg; \
const std::string &omsgstr = omsg.str(); \
TestForException_break(omsgstr); \
throw Sundance::RuntimeError(TEUCHOS_OSTRINGSTREAM_GET_C_STR(omsg)); \
}
Definition at line 53 of file SundanceExceptions.hpp.
Referenced by Sundance::Lagrange::evalOnBrick(), Sundance::Lagrange::evalOnTet(), Sundance::Lagrange::evalOnTriangle(), Sundance::QuadratureFamilyBase::getAdaptedWeights(), Sundance::QuadratureFamilyBase::getBrickRule(), Sundance::QuadratureFamilyBase::getLineRule(), Sundance::TetQuadrature::getPoints(), Sundance::QuadratureFamilyBase::getPoints(), Sundance::FeketeTriangleQuadrature::getPoints(), Sundance::QuadratureFamilyBase::getQuadRule(), Sundance::QuadratureFamilyBase::getTetRule(), Sundance::QuadratureFamilyBase::getTriangleRule(), Sundance::TriangleQuadrature::permute(), Sundance::TetQuadrature::permute(), and Sundance::FeketeTriangleQuadrature::permute().
| #define SUNDANCE_ERROR7 | ( | msg | ) |
{ \
TestForException_break(); \
TeuchosOStringStream omsg; \
omsg << __FILE__ << ":" << __LINE__ << ": " \
<< ": " << msg; \
throw Sundance::RuntimeError(TEUCHOS_OSTRINGSTREAM_GET_C_STR(omsg)); \
}
Definition at line 44 of file SundanceExceptions.hpp.
Referenced by Sundance::Lagrange::evalOnBrick(), Sundance::Lagrange::evalOnTet(), Sundance::Lagrange::evalOnTriangle(), Sundance::QuadratureFamilyBase::getAdaptedWeights(), Sundance::QuadratureFamilyBase::getBrickRule(), Sundance::QuadratureFamilyBase::getLineRule(), Sundance::TetQuadrature::getPoints(), Sundance::QuadratureFamilyBase::getPoints(), Sundance::FeketeTriangleQuadrature::getPoints(), Sundance::QuadratureFamilyBase::getQuadRule(), Sundance::QuadratureFamilyBase::getTetRule(), Sundance::QuadratureFamilyBase::getTriangleRule(), Sundance::TriangleQuadrature::permute(), Sundance::TetQuadrature::permute(), and Sundance::FeketeTriangleQuadrature::permute().
| #define SUNDANCE_TRACE | ( | e | ) |
{ \
TeuchosOStringStream omsg; \
omsg << e.what() << std::endl \
<< "caught in " << __FILE__ << ":" << __LINE__ << std::endl ; \
throw Sundance::RuntimeError(TEUCHOS_OSTRINGSTREAM_GET_C_STR(omsg)); \
}
Definition at line 64 of file SundanceExceptions.hpp.
Referenced by Sundance::MeshType::createEmptyMesh(), Sundance::MeshSource::getMesh(), Sundance::TriangleMeshReader::readElems(), Sundance::TriangleMeshReader::readParallelInfo(), Sundance::ExodusMeshReader::readParallelInfo(), Sundance::BamgMeshReader::readParallelInfo(), and Sundance::TriangleMeshReader::readSides().
| #define SUNDANCE_TRACE_MSG | ( | e, | |
| msg | |||
| ) |
{ \
TeuchosOStringStream omsg; \
omsg << e.what() << std::endl \
<< "caught in " << __FILE__ << ":" << __LINE__ << std::endl ; \
omsg << msg << std::endl; \
throw Sundance::RuntimeError(TEUCHOS_OSTRINGSTREAM_GET_C_STR(omsg)); \
}
Definition at line 72 of file SundanceExceptions.hpp.
Referenced by Sundance::BasicSimplicialMesh::assignIntermediateCellGIDs(), Sundance::PartitionedLineMesher::fillMesh(), Sundance::BasicSimplicialMesh::resolveEdgeOwnership(), and Sundance::BasicSimplicialMesh::synchronizeNeighborLists().