forked from ESCOMP/CMEPS
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CMEPS for postphases, ice sheets and glc->ocn dynamic mapping
* adds multiple ice sheet functionality (ESCOMP#140) * adds post phases for performance enhancement (ESCOMP#146) * adds ocn->glc (land ice) coupling at multiple levels (ESCOMP#148)
- Loading branch information
1 parent
47dcaf1
commit 51d21d8
Showing
46 changed files
with
5,403 additions
and
3,180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
include(ExternalProject) | ||
|
||
if (DEFINED CIMEROOT) | ||
message("Using CIME in ${CIMEROOT} with compiler ${COMPILER}") | ||
include(${CASEROOT}/Macros.cmake) | ||
if (${PIO_VERSION} LESS 2) | ||
message( FATAL_ERROR "Version 2 of the PIO library required") | ||
endif() | ||
if (${MPILIB} STREQUAL "mpi-serial") | ||
set(CMAKE_C_COMPILER ${SCC}) | ||
set(CMAKE_Fortran_COMPILER ${SFC}) | ||
set(CMAKE_CXX_COMPILER ${SCXX}) | ||
else() | ||
set(CMAKE_C_COMPILER ${MPICC}) | ||
set(CMAKE_Fortran_COMPILER ${MPIFC}) | ||
set(CMAKE_CXX_COMPILER ${MPICXX}) | ||
endif() | ||
set(CMAKE_Fortran_FLAGS "${FFLAGS} -I${LIBROOT}/include -I${LIBROOT}/finclude -I${LIBROOT}/nuopc/esmf/${NINST_VALUE}/include") | ||
else() | ||
set(BLD_STANDALONE TRUE) | ||
endif() | ||
|
||
project(CMEPS LANGUAGES Fortran VERSION 0.1) | ||
|
||
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) | ||
|
||
message("CMAKE_MODULE_PATH is ${CMAKE_MODULE_PATH}") | ||
|
||
find_package(ESMF REQUIRED) | ||
if (DEFINED PIO) | ||
set(PIO_PATH ${PIO}) | ||
else() | ||
set(PIO_PATH $ENV{PIO}) | ||
endif() | ||
find_package(PIO REQUIRED COMPONENT C Fortran PATH ${PIO_PATH}) | ||
|
||
if (NOT DEFINED MPILIB OR NOT ${MPILIB} STREQUAL "mpi-serial") | ||
find_package(MPI REQUIRED) | ||
endif() | ||
|
||
if(BLD_STANDALONE) | ||
add_subdirectory(nems/util) | ||
list(APPEND EXTRA_LIBS cmeps_share) | ||
list(APPEND EXTRA_INCLUDES "${CMAKE_BINARY_DIR}/nems/util") | ||
endif() | ||
|
||
add_subdirectory(mediator) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.