52 #ifndef ZOLTAN2_UTIL_HPP
53 #define ZOLTAN2_UTIL_HPP
56 #include <Teuchos_DefaultComm.hpp>
63 template <
typename scalar_t>
65 return ((val < mark-epsilon) || (val > mark+epsilon));
70 const char *file = __FILE__,
int line = __LINE__) {
72 std::ostringstream eMsg;
73 eMsg <<
"Error: " << file <<
", " << line <<
": " << message
75 throw std::runtime_error(eMsg.str());
static void AssertCondition(bool condition, const std::string &message, const char *file=__FILE__, int line=__LINE__)
long getProcessKilobytes()
Gathering definitions used in software development.
bool outsideRegion(scalar_t val, scalar_t mark, double epsilon)