Go to the source code of this file.
Classes | |
class | Playa::InternalError |
class | Playa::RuntimeError |
Namespaces | |
namespace | Playa |
Playa is a collection of high-level objects for linear algebra. | |
Defines | |
#define | PLAYA_ERROR7(msg) |
#define | PLAYA_ERROR(msg) |
#define | PLAYA_TRACE(e) |
#define | PLAYA_TRACE_MSG(e, msg) |
#define | PLAYA_BOUNDSCHECK(i, low, high, location) |
#define | PLAYA_CHECK_ARRAY_SIZE_MATCH(a1, a2) |
#define PLAYA_BOUNDSCHECK | ( | i, | |||
low, | |||||
high, | |||||
location | ) |
Value:
{ \ TEUCHOS_TEST_FOR_EXCEPTION( i < low || i > high, Playa::RuntimeError, \ "Bounds violation in " << location << ": " \ << #i << "is out of range [" \ << #low << ", " << #high << "]") \ }
Definition at line 55 of file PlayaExceptions.hpp.
Referenced by Playa::DefaultBlockVector< Scalar >::getBlock(), Playa::DefaultBlockVector< Scalar >::getNonConstBlock(), Playa::Vector< Scalar >::operator[](), and Playa::DefaultBlockVector< Scalar >::setBlock().
#define PLAYA_CHECK_ARRAY_SIZE_MATCH | ( | a1, | |||
a2 | ) |
Value:
{\ TEUCHOS_TEST_FOR_EXCEPTION(a1.size() != a2.size(), Playa::RuntimeError, \ y "Mismatched array sizes: size(" << #a1 << ")=" << a1.size() \ << " size(" << #a2 << ")=" << a2.size() << ". Expected equal sizes");\ }
Definition at line 63 of file PlayaExceptions.hpp.
#define PLAYA_ERROR | ( | msg | ) |
Value:
{ \ std::ostringstream omsg; \ omsg << __FILE__ << ":" << __LINE__ << ": " \ << ": " << msg; \ const std::string &omsgstr = omsg.str(); \ Teuchos::TestForException_break(omsgstr); \ throw Playa::RuntimeError(TEUCHOS_OSTRINGSTREAM_GET_C_STR(omsg)); \ }
Definition at line 27 of file PlayaExceptions.hpp.
#define PLAYA_ERROR7 | ( | msg | ) |
Value:
{ \ Teuchos::TestForException_break(); \ std::ostringstream omsg; \ omsg << __FILE__ << ":" << __LINE__ << ": " \ << ": " << msg; \ throw Playa::RuntimeError(TEUCHOS_OSTRINGSTREAM_GET_C_STR(omsg)); \ }
Definition at line 18 of file PlayaExceptions.hpp.
#define PLAYA_TRACE | ( | e | ) |
Value:
{ \ std::ostringstream omsg; \ omsg << e.what() << std::endl \ << "caught in " << __FILE__ << ":" << __LINE__ << std::endl ; \ throw Playa::RuntimeError(TEUCHOS_OSTRINGSTREAM_GET_C_STR(omsg)); \ }
Definition at line 38 of file PlayaExceptions.hpp.
#define PLAYA_TRACE_MSG | ( | e, | |||
msg | ) |
Value:
{ \ std::ostringstream omsg; \ omsg << e.what() << std::endl \ << "caught in " << __FILE__ << ":" << __LINE__ << std::endl ; \ omsg << msg << std::endl; \ throw Playa::RuntimeError(TEUCHOS_OSTRINGSTREAM_GET_C_STR(omsg)); \ }
Definition at line 46 of file PlayaExceptions.hpp.