Skip to content

Commit

Permalink
OpenMPI is not fortran 2003 compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
ljacobson64 committed Aug 27, 2018
1 parent 52bf1f7 commit 994aa86
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions MCNP620/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 994aa86

Please sign in to comment.