Skip to content

Commit

Permalink
Merge pull request #256 from climbfuji/update_dtc_develop_from_master
Browse files Browse the repository at this point in the history
dtc/develop: update from master 2020/01/27
  • Loading branch information
climbfuji authored Feb 3, 2020
2 parents 4259622 + 1c41a61 commit abbe8ab
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ string(TIMESTAMP YEAR "%Y")
# Set the CMake module path
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

#------------------------------------------------------------------------------
# Static or dynamic CCPP, default is dynamic; standalone build can only be dynamic
option(STATIC "Build a static CCPP" OFF)
if (PROJECT STREQUAL "Unknown" AND STATIC)
message(FATAL_ERROR "ccpp-framework standalone build can only be dynamic")
endif(PROJECT STREQUAL "Unknown" AND STATIC)

#------------------------------------------------------------------------------
# Set OpenMP flags for C/C++/Fortran
if (OPENMP)
Expand Down
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# GMTB CCPP
# CCPP Framwork

[GMTB](http://www.dtcenter.org/GMTB/html/) Common Community Physics Package
(CCPP), including the Interoperable Physics Driver (IPD).
Common Community Physics Package (CCPP) Framework.

| Branch | Linux/MacOS Build | Coverage |
|--- |--- |--- |
Expand All @@ -10,9 +9,7 @@


## Notes to Users
This repository contains the Common Community Physics Packages (CCPP) and the driver
for the CCPP (which has been until recently referred to as the GMTB IPD). To avoid
ambiguity, the term "IPD" will not be used for code contained within this repository.
This repository contains the Common Community Physics Packages (CCPP) Framework.

The repository for the CCPP and the CCPP driver contains sufficient code for standalone
testing of the CCPP. The CCPP repository may also be used in conjunction with the
Expand Down
10 changes: 5 additions & 5 deletions schemes/check/ccpp_prebuild_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
'../../../../../schemes/check/check_test.f90' : [ 'test' ],
}

# Default build dir, relative to current working directory,
# if not specified as command-line argument
DEFAULT_BUILD_DIR = '.'

# Auto-generated makefile/cmakefile snippets that contain all schemes
SCHEMES_MAKEFILE = '/dev/null'
SCHEMES_CMAKEFILE = '/dev/null'
Expand Down Expand Up @@ -84,9 +88,5 @@
# Template code to generate include files #
###############################################################################

# Name of the CCPP data structure in the host model cap;
# in the case of FV3, this is a 2-dimensional array with
# the number of blocks as the first and the number of
# OpenMP threads as the second dimension; nb is the loop
# index for the current block, nt for the current thread
# Name of the CCPP data structure in the host model cap
CCPP_DATA_STRUCTURE = 'cdata'
8 changes: 5 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,11 @@ set(${PACKAGE}_LIB_DIRS

#------------------------------------------------------------------------------
# Add the tests (designed for DYNAMIC build only)
if(!STATIC)
add_subdirectory(tests)
endif(!STATIC)
if(STATIC)
message(STATUS "Skipping tests, defined for dynamic build only")
else(STATIC)
add_subdirectory(tests)
endif(STATIC)

#------------------------------------------------------------------------------
# Define the executable and what to link
Expand Down

0 comments on commit abbe8ab

Please sign in to comment.