Skip to content
Snippets Groups Projects
Commit 89490fdf authored by Dominic Kempf's avatar Dominic Kempf
Browse files

[CMake][bugfix] Only run the complex tests with UG present

The code base as it is throws a `#error` if UG is not present.
That is _NOT_ a nice behaviour for a test. This commit applies
the simple fix of only adding the test with UG present. It would
of course be nicer to also check complex number computations with
YaspGrid, but that is much more work.
parent 859b6cd0
No related branches found
No related tags found
No related merge requests found
......@@ -4,15 +4,17 @@ dune_add_test(SOURCES testanalytic.cc)
dune_add_test(SOURCES testclock.cc)
dune_add_test(NAME testcomplexnumbers-istl
SOURCES testcomplexnumbers.cc
COMPILE_DEFINITIONS SUPERLU_NTYPE=3
USE_ISTL)
dune_add_test(NAME testcomplexnumbers-istlbackend
SOURCES testcomplexnumbers.cc
COMPILE_DEFINITIONS SUPERLU_NTYPE=3
USE_ISTL_BACKEND)
if(HAVE_UG)
dune_add_test(NAME testcomplexnumbers-istl
SOURCES testcomplexnumbers.cc
COMPILE_DEFINITIONS SUPERLU_NTYPE=3
USE_ISTL)
dune_add_test(NAME testcomplexnumbers-istlbackend
SOURCES testcomplexnumbers.cc
COMPILE_DEFINITIONS SUPERLU_NTYPE=3
USE_ISTL_BACKEND)
endif()
dune_add_test(SOURCES testconstraints.cc
COMPILE_DEFINITIONS GRIDSDIR=\"${CMAKE_CURRENT_SOURCE_DIR}/grids\")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment