ViennaLS
Loading...
Searching...
No Matches
lsTestAsserts.hpp File Reference
#include <lsCheck.hpp>

Go to the source code of this file.

Macros

#define LSTEST_ASSERT(condition)
 
#define LSTEST_ASSERT_VALID_LS(levelSet, NumericType, D)
 

Macro Definition Documentation

◆ LSTEST_ASSERT

#define LSTEST_ASSERT ( condition)
Value:
{ \
if (!(condition)) { \
throw std::runtime_error(std::string(__FILE__) + std::string(":") + \
std::to_string(__LINE__) + \
std::string(" in ") + \
std::string(__PRETTY_FUNCTION__)); \
} \
}

◆ LSTEST_ASSERT_VALID_LS

#define LSTEST_ASSERT_VALID_LS ( levelSet,
NumericType,
D )
Value:
{ \
auto check = viennals::Check<NumericType, D>(levelSet); \
check.apply(); \
if (check.isValid()) { \
std::cout << "SUCCESS" << std::endl; \
} else { \
throw std::runtime_error( \
std::string(__FILE__) + std::string(":") + \
std::to_string(__LINE__) + std::string(" in ") + \
std::string(__PRETTY_FUNCTION__) + "\n" + check.what()); \
} \
}
This class is used to find errors in the underlying level set structure, like invalid neighbours of d...
Definition lsCheck.hpp:22