ViennaLS
Loading...
Searching...
No Matches
lsTestAsserts.hpp File Reference
#include <cmath>
#include <iostream>
#include <lsCheck.hpp>
#include <lsMesh.hpp>
#include <sstream>
#include <vcTestAsserts.hpp>
#include <vector>

Go to the source code of this file.

Macros

#define LSTEST_ASSERT_VALID_LS(levelSet, NumericType, D)
#define LSTEST_ASSERT_MESH_CORNERS(mesh, expected, D, gridDelta)

Macro Definition Documentation

◆ LSTEST_ASSERT_MESH_CORNERS

#define LSTEST_ASSERT_MESH_CORNERS ( mesh,
expected,
D,
gridDelta )

◆ 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