Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Working on getting the parallel tests working with cmake.
  • Loading branch information
WardF committed Dec 21, 2016
1 parent 62ae092 commit 6fe0672
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions examples/F90/CMakeLists.txt
Expand Up @@ -7,20 +7,10 @@ SET(example_F90_tests_source "")
FILE(GLOB COPY_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.sh)
FILE(COPY ${COPY_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)

IF(TEST_PARALLEL)
build_bin_test(simple_xy_par_wr .f90)
build_bin_test(simple_xy_par_rd .f90)
build_bin_test(simple_xy_par_wr2 .f90)
add_sh_test(F90_tests run_f90_par_examples)
ENDIF(TEST_PARALLEL)

FOREACH(F ${example_F90_tests})
SET(example_F90_tests_source ${example_F90_test_source} ${F}.f90)
ENDFOREACH()




SET(prefix F90_tests)
FOREACH(F ${example_F90_tests})
ADD_EXECUTABLE(${prefix}_${F} ${F}.f90)
Expand All @@ -36,6 +26,12 @@ FOREACH(F ${example_F90_tests})
ENDIF()
ENDFOREACH()

IF(TEST_PARALLEL)
build_bin_test(simple_xy_par_wr .f90)
build_bin_test(simple_xy_par_rd .f90)
build_bin_test(simple_xy_par_wr2 .f90)
add_sh_test(f90_tests run_f90_par_examples)
ENDIF(TEST_PARALLEL)


SET(CLEANFILES sfc_pres_temp.nc simple_xy.nc pres_temp_4D.nc simple_nc4.nc simple_xy_nc4.nc)
Expand Down

0 comments on commit 6fe0672

Please sign in to comment.