![]() |
LehrFEM++ 1.0.0
A simple Finite Element Library for teaching
|
You are here because you encountered the following warning during compilation:
LehrFEM++ normally tries to give you a stacktrace when an eigen_assert is failing. For this LehrFEM++ must redefine the eigen_assert macro so that it calls a LehrFEM's LF_ASSERT_MSG() macro.
This works only, if you include LehrFEM++ headers before any eigen headers.
Otherwise, you may get get the warning from above.
You have three options:
eigen_assert macro. You will not get a stacktrace when an eigen assert fails.When the warning is emitted by the compiler, it will usually also tell you how lf_assert.h has been included. An Example Error message produced by clang:
You can then follow the include hierarchy from the beginning (gmsh_file_v4_binary.cc) until you reach lf_assert.h. At every step you should check if any Eigen header is #included before a LehrFEM++ header.
eigen_assert macroLehrFEM++ has the cmake option LF_REDIRECT_ASSERTS which is by default enabled. You can disable this option and thereby tell LehrFEM++ to not redirect eigen and boost asserts to LF_ASSERT_MSG.
You can just issue the following command in your cmake build directory:
cmake/Hunter/config.cmake in your repository.HunterGate command in your top-level CMakeLists.txt as follows: