diff --git a/CMakeLists.txt b/CMakeLists.txt index f729dbe04..7768e2379 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -177,10 +177,8 @@ endif() #set a cache variable that controls whether #we want to build the unit test or not set(BUILD_UNIT_TEST_PC false CACHE BOOL "Do you want to build the primordial chem unit test? (true/false)") -message("Building primordial chem unit test") set(BUILD_UNIT_TEST_MC false CACHE BOOL "Do you want to build the metal chem unit test? (true/false)") -message("Building metal chem unit test") add_compile_options(-Werror -Wall -Wextra) diff --git a/unit_test/burn_cell_metal_chem/CMakeLists.txt b/unit_test/burn_cell_metal_chem/CMakeLists.txt index d22dd6ec0..4b4f479e7 100644 --- a/unit_test/burn_cell_metal_chem/CMakeLists.txt +++ b/unit_test/burn_cell_metal_chem/CMakeLists.txt @@ -1,4 +1,6 @@ #all .cpp files that need to be compiled for the test go here +configure_file(Semenov_PlanckOpacity.dat ${CMAKE_CURRENT_BINARY_DIR}/Semenov_PlanckOpacity.dat COPYONLY) + add_executable(test_burn_cell_metal_chem main.cpp ${metal_chem_sources}) #test needs to find burn_cell.H, unit_test.H, and extern_parameters.H @@ -14,4 +16,4 @@ if(AMReX_GPU_BACKEND MATCHES "CUDA") setup_target_for_cuda_compilation(test_burn_cell_metal_chem) endif(AMReX_GPU_BACKEND MATCHES "CUDA") -add_test(NAME burn_cell_metal_chem COMMAND test_burn_metal_chem inputs_metal_chem WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) +add_test(NAME burn_cell_metal_chem COMMAND test_burn_cell_metal_chem inputs_metal_chem WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})