Commit 0255d992 authored by Antonio Cervone's avatar Antonio Cervone
Browse files

test_bdf_2d in cmake

parent e34d3d53
......@@ -13,6 +13,19 @@ add_custom_target (test_bdf_links
# Fake dependency to ensure that links are made prior to running the test
add_dependencies (test_bdf DEPENDS test_bdf_links)
# Add the executable
add_executable (test_bdf_2d EXCLUDE_FROM_ALL main.cpp test_bdf_2d.cpp)
target_link_libraries (test_bdf_2d ${LIBS})
add_custom_target (test_bdf_2d_links
COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_CURRENT_SOURCE_DIR}/data_2d;data_2d
COMMAND ${CMAKE_COMMAND} -E create_symlink ${PROJECT_SOURCE_DIR}/testsuite/data/mesh;Mesh
VERBATIM)
# Fake dependency to ensure that links are made prior to running the test
add_dependencies (test_bdf_2d DEPENDS test_bdf_2d_links)
add_test (NAME LifeSolver::BDF_Order1 COMMAND mpirun -np 2 test_bdf -f data1)
add_test (NAME LifeSolver::BDF_Order2 COMMAND mpirun -np 2 test_bdf -f data2)
add_test (NAME LifeSolver::BDF_Order3 COMMAND mpirun -np 2 test_bdf -f data3)
add_test (NAME LifeSolver::BDF_2D COMMAND mpirun -np 2 test_bdf_2d -f data_2d)
......@@ -110,3 +110,6 @@ type = ensight #hdf5
multimesh = false # actually we export also the displacement
start = 0
save = 1
[errorNorms]
l2Error = 1e-7
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment