Skip to content

Commit

Permalink
Merge pull request #1 from grantfirl/feature/nssl_micro_gjf
Browse files Browse the repository at this point in the history
couple minor changes
  • Loading branch information
MicroTed authored Feb 2, 2022
2 parents 12f6399 + 335bce5 commit ba38c72
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
branch = main
[submodule "ccpp-physics"]
path = ccpp/physics
url = https://github.com/MicroTed/ccpp-physics
branch = feature/nsslmicro
url = https://github.com/NCAR/ccpp-physics
branch = main
24 changes: 17 additions & 7 deletions scm/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,23 @@ string(REGEX REPLACE "(.+),$" "\\1" SUITES ${SUITES})
message (STATUS "Running ccpp_prebuild.py for CCPP")
# Make the directories where the ccpp_prebuild.py script wants to write caps and make snippets
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/ccpp/physics/physics)
execute_process(
COMMAND ccpp/framework/scripts/ccpp_prebuild.py --config=ccpp/config/ccpp_prebuild_config.py --suites=${SUITES} --builddir=${CMAKE_CURRENT_BINARY_DIR}
OUTPUT_FILE ${PROJECT_BINARY_DIR}/ccpp_prebuild.out
ERROR_FILE ${PROJECT_BINARY_DIR}/ccpp_prebuild.err
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../..
RESULT_VARIABLE return_code
)
if (${CMAKE_BUILD_TYPE} MATCHES "Debug")
execute_process(
COMMAND ccpp/framework/scripts/ccpp_prebuild.py --config=ccpp/config/ccpp_prebuild_config.py --suites=${SUITES} --builddir=${CMAKE_CURRENT_BINARY_DIR} --debug
OUTPUT_FILE ${PROJECT_BINARY_DIR}/ccpp_prebuild.out
ERROR_FILE ${PROJECT_BINARY_DIR}/ccpp_prebuild.err
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../..
RESULT_VARIABLE return_code
)
else()
execute_process(
COMMAND ccpp/framework/scripts/ccpp_prebuild.py --config=ccpp/config/ccpp_prebuild_config.py --suites=${SUITES} --builddir=${CMAKE_CURRENT_BINARY_DIR}
OUTPUT_FILE ${PROJECT_BINARY_DIR}/ccpp_prebuild.out
ERROR_FILE ${PROJECT_BINARY_DIR}/ccpp_prebuild.err
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../..
RESULT_VARIABLE return_code
)
endif()

# Check return code from CCPP prebuild.py
if(return_code EQUAL 0)
Expand Down
2 changes: 1 addition & 1 deletion scm/src/GFS_typedefs.meta
Original file line number Diff line number Diff line change
Expand Up @@ -9398,7 +9398,7 @@
standard_name = flag_convective_tracer_transport_interstitial
long_name = flag for interstitial tracer transport
units = flag
dimensions = (number_of_tracers_plus_one)
dimensions = (number_of_tracers)
type = logical
[oz_coeffp5]
standard_name = number_of_coefficients_in_ozone_forcing_data_plus_five
Expand Down

0 comments on commit ba38c72

Please sign in to comment.