From 994aa8666e72016ab3b46c0c69d5b395e6f219f4 Mon Sep 17 00:00:00 2001 From: Lucas John Jacobson Date: Mon, 27 Aug 2018 15:51:45 -0500 Subject: [PATCH] OpenMPI is not fortran 2003 compliant --- MCNP620/CMakeLists.txt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/MCNP620/CMakeLists.txt b/MCNP620/CMakeLists.txt index a91b322..47be01c 100644 --- a/MCNP620/CMakeLists.txt +++ b/MCNP620/CMakeLists.txt @@ -58,15 +58,14 @@ else () set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -ffree-form") set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -mieee-fp") set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fdollar-ok") - set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -std=f2003") + # OpenMPI is not Fortran 2003 compliant + if (NOT BUILD_MPI) + set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -std=f2003") + endif () set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fdefault-real-8") set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fdefault-double-8") endif () -# Include directories -####include_directories(${CMAKE_CURRENT_LIST_DIR}/Source/import) -####include_directories(${CMAKE_CURRENT_LIST_DIR}/Source/import/cgm) - # Preprocessor directives add_definitions(-DKODE="mcnp") add_definitions(-DTHREAD="MCNP_6.20")