16 #ifndef ZOLTAN2_UTIL_HPP
17 #define ZOLTAN2_UTIL_HPP
20 #include <Teuchos_DefaultComm.hpp>
27 template <
typename scalar_t>
29 return ((val < mark-epsilon) || (val > mark+epsilon));
34 const char *file = __FILE__,
int line = __LINE__) {
36 std::ostringstream eMsg;
37 eMsg <<
"Error: " << file <<
", " << line <<
": " << message
39 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)