Skip to content

Commit

Permalink
Merge pull request #5 from climbfuji/rrtmgp_noopenmp_dom
Browse files Browse the repository at this point in the history
RRTMGP w/o OpenMP
  • Loading branch information
dustinswales authored Mar 19, 2021
2 parents e7fb1d2 + c8ceb79 commit 7414e01
Showing 1 changed file with 0 additions and 54 deletions.
54 changes: 0 additions & 54 deletions ccpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -178,60 +178,6 @@ endif (DYN32)
ADD_DEFINITIONS(-DMOIST_CAPPA -DUSE_COND -DNEMS_GSM)
ADD_DEFINITIONS(-DINTERNAL_FILE_NML)

#------------------------------------------------------------------------------
# Set OpenMP flags for C/C++/Fortran compiler and preprocessor
if (OPENMP)
include(detect_openmp)
detect_openmp()
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${OpenMP_Fortran_FLAGS}")
message(STATUS "Enable OpenMP support for C/C++/Fortran compiler")
ADD_DEFINITIONS(-DOPENMP)
else (OPENMP)
message (STATUS "Disable OpenMP support for C/C++/Fortran compiler")
endif (OPENMP)

#------------------------------------------------------------------------------
# Set SIONlib flags for preprocessor, compiler and linker (if defined)
if (SIONLIB)
execute_process(COMMAND ${SIONLIB}/bin/sionconfig --mpi --cflags --f90
RESULT_VARIABLE exit_code
OUTPUT_VARIABLE SIONlib_Fortran_FLAGS
ERROR_VARIABLE stderr
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_STRIP_TRAILING_WHITESPACE)
if (NOT exit_code EQUAL "0")
message (FATAL_ERROR "Execution of '${SIONLIB}/bin/sionconfig --mpi --cflags --f90' failed")
endif (NOT exit_code EQUAL "0")
execute_process(COMMAND ${SIONLIB}/bin/sionconfig --mpi --libs --f90
RESULT_VARIABLE exit_code
OUTPUT_VARIABLE SIONlib_Fortran_LIBS
ERROR_VARIABLE stderr
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_STRIP_TRAILING_WHITESPACE)
if (NOT exit_code EQUAL "0")
message (FATAL_ERROR "Execution of '${SIONLIB}/bin/sionconfig --mpi --libs --f90' failed")
endif (NOT exit_code EQUAL "0")
set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${SIONlib_Fortran_FLAGS} ${SIONlib_Fortran_LIBS}")
ADD_DEFINITIONS(-DSION)
message (STATUS "Enable SIONlib support")
else (SIONLIB)
message (STATUS "Disable SIONlib support")
endif (SIONLIB)

#------------------------------------------------------------------------------
# Set Intel MKL flags for preprocessor, compiler and linker (if defined)
if(MKL_DIR)
set (MKL_INC "-m64 -I${MKL_DIR}/include")
set (MKL_LIB "-L${MKL_DIR}/lib -Wl,-rpath,${MKL_DIR}/lib -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm -ldl")
set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${MKL_INC} ${MKL_LIB}")
ADD_DEFINITIONS(-DMKL)
message (STATUS "Enable Intel MKL support")
else(MKL_DIR)
message (STATUS "Disable Intel MKL support")
endif(MKL_DIR)

#------------------------------------------------------------------------------
# Set netCDF flags for preprocessor, compiler and linker (if defined)
# Legacy settings for old make build
Expand Down

0 comments on commit 7414e01

Please sign in to comment.