From 7cbd9683b4af22d307df496593d49a4245027b46 Mon Sep 17 00:00:00 2001 From: "Daniel R. Reynolds" Date: Tue, 13 Feb 2024 13:23:37 -0600 Subject: [PATCH] Removed explicit specification of MPI_Fortran_COMPILER from F2003_parallel/CMakeLists.txt example files --- examples/arkode/F2003_parallel/CMakeLists.txt | 10 +--------- examples/cvode/F2003_parallel/CMakeLists.txt | 9 --------- examples/ida/F2003_parallel/CMakeLists.txt | 8 -------- examples/kinsol/F2003_parallel/CMakeLists.txt | 9 --------- 4 files changed, 1 insertion(+), 35 deletions(-) diff --git a/examples/arkode/F2003_parallel/CMakeLists.txt b/examples/arkode/F2003_parallel/CMakeLists.txt index 813774f6e9..32f6e433a0 100644 --- a/examples/arkode/F2003_parallel/CMakeLists.txt +++ b/examples/arkode/F2003_parallel/CMakeLists.txt @@ -25,14 +25,6 @@ set(FARKODE_examples "ark_diag_non_f2003\;\;1\;4\;develop\;2" "ark_heat2D_f2003\;\;1\;4\;develop\;2") -if(MPI_Fortran_COMPILER) - # use MPI wrapper as the compiler - set(CMAKE_Fortran_COMPILER ${MPI_Fortran_COMPILER}) -else() - # add MPI_INCLUDE_PATH to include directories - include_directories(${MPI_INCLUDE_PATH}) -endif() - # Set-up linker flags and link libraries set(SUNDIALS_LIBS sundials_arkode sundials_farkode_mod @@ -112,7 +104,7 @@ if(EXAMPLES_INSTALL) set(EXAMPLE_LIBS_LIST sundials_farkode_mod sundials_nvecparallel - sundials_fnvecparallel_mod + sundials_fnvecparallel_mod sundials_arkode sundials_fnvecmpiplusx_mod sundials_nvecmpiplusx diff --git a/examples/cvode/F2003_parallel/CMakeLists.txt b/examples/cvode/F2003_parallel/CMakeLists.txt index 3c2e805650..d25132cbf6 100644 --- a/examples/cvode/F2003_parallel/CMakeLists.txt +++ b/examples/cvode/F2003_parallel/CMakeLists.txt @@ -24,15 +24,6 @@ if(MPI_ENABLED) "cv_diag_non_p_f2003\;\;1\;4\;develop\;2") endif() - -if(MPI_Fortran_COMPILER) - # use MPI wrapper as the compiler - set(CMAKE_Fortran_COMPILER ${MPI_Fortran_COMPILER}) -else() - # add MPI_INCLUDE_PATH to include directories - include_directories(${MPI_INCLUDE_PATH}) -endif() - # Specify libraries to link against set(CVODE_LIBS sundials_cvode diff --git a/examples/ida/F2003_parallel/CMakeLists.txt b/examples/ida/F2003_parallel/CMakeLists.txt index e502e9fdd5..681207f6ce 100644 --- a/examples/ida/F2003_parallel/CMakeLists.txt +++ b/examples/ida/F2003_parallel/CMakeLists.txt @@ -23,14 +23,6 @@ if(MPI_ENABLED) endif() -if(MPI_Fortran_COMPILER) - # use MPI wrapper as the compiler - set(CMAKE_Fortran_COMPILER ${MPI_Fortran_COMPILER}) -else() - # add MPI_INCLUDE_PATH to include directories - include_directories(${MPI_INCLUDE_PATH}) -endif() - # Specify libraries to link against set(IDA_LIBS sundials_ida diff --git a/examples/kinsol/F2003_parallel/CMakeLists.txt b/examples/kinsol/F2003_parallel/CMakeLists.txt index 2202abd5ca..eedf035bda 100644 --- a/examples/kinsol/F2003_parallel/CMakeLists.txt +++ b/examples/kinsol/F2003_parallel/CMakeLists.txt @@ -22,15 +22,6 @@ if(MPI_ENABLED) "kin_diagon_kry_f2003\;\;1\;4\;develop\;2") endif() - -if(MPI_Fortran_COMPILER) - # use MPI wrapper as the compiler - set(CMAKE_Fortran_COMPILER ${MPI_Fortran_COMPILER}) -else() - # add MPI_INCLUDE_PATH to include directories - include_directories(${MPI_INCLUDE_PATH}) -endif() - # Specify libraries to link against set(KINSOL_LIBS sundials_kinsol