Classes | Namespaces | Defines
SundanceExceptions.hpp File Reference

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 Documentation

#define SUNDANCE_BOUNDSCHECK (   i,
  low,
  high,
  msg 
)
Value:
{ \
  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 
)
Value:
{\
    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)
#define SUNDANCE_ERROR7 (   msg)
#define SUNDANCE_TRACE (   e)
Value:
{ \
  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 
)
Value:
{ \
  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().

Site Contact