Skip to content

Commit

Permalink
CCPP CMake cleanup, update submodule pointer for stochastic_physics t…
Browse files Browse the repository at this point in the history
…o include emergency bugfix for restart runs (#943)

* Changes in CMake config required by the cleanup of the CCPP cmake cleanup in fv3atm, ccpp-framework, ccpp-physics
* Update submodule pointer for stochastic_physics
  • Loading branch information
climbfuji authored Dec 14, 2021
1 parent 56f3483 commit 64fe240
Show file tree
Hide file tree
Showing 14 changed files with 2,719 additions and 2,709 deletions.
2 changes: 1 addition & 1 deletion FV3
4 changes: 3 additions & 1 deletion cmake/GNU.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ else()
endif()

# For ccpp
set(CMAKE_Fortran_FLAGS_DEFAULT_PREC "-fdefault-real-8 -fdefault-double-8")
set(CMAKE_C_FLAGS_RELEASE "-O2 -fPIC" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -fPIC" CACHE STRING "" FORCE)
set(CMAKE_Fortran_FLAGS_RELEASE "-O2 -fPIC" CACHE STRING "" FORCE)
set(CMAKE_C_FLAGS_BITFORBIT "-O2 -fPIC" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS_BITFORBIT "-O2 -fPIC" CACHE STRING "" FORCE)
set(CMAKE_Fortran_FLAGS_BITFORBIT "-O2 -fPIC" CACHE STRING "" FORCE)
5 changes: 0 additions & 5 deletions cmake/Intel.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,19 @@ else()
if(AVX2)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -march=core-avx2")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=core-avx2")
set(CMAKE_Fortran_FLAGS_OPT "-no-prec-div -no-prec-sqrt -xCORE-AVX2")
elseif(SIMDMULTIARCH)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -axSSE4.2,CORE-AVX2")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -axSSE4.2,CORE-AVX2")
set(CMAKE_Fortran_FLAGS_OPT "-no-prec-div -no-prec-sqrt -axSSE4.2,CORE-AVX2")
elseif(AVX)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -march=core-avx-i")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=core-avx-i")
set(CMAKE_Fortran_FLAGS_OPT "-no-prec-div -no-prec-sqrt -xCORE-AVX-I")
endif()
endif()

# For ccpp
set(CMAKE_Fortran_FLAGS_DEFAULT_PREC "-real-size 64")
set(CMAKE_C_FLAGS_RELEASE "-O2 -fPIC" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -fPIC" CACHE STRING "" FORCE)
set(CMAKE_Fortran_FLAGS_RELEASE "-O2 -fPIC" CACHE STRING "" FORCE)

set(CMAKE_C_FLAGS_BITFORBIT "-O2 -fPIC" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS_BITFORBIT "-O2 -fPIC" CACHE STRING "" FORCE)
set(CMAKE_Fortran_FLAGS_BITFORBIT "-O2 -fPIC" CACHE STRING "" FORCE)
Expand Down
2 changes: 1 addition & 1 deletion stochastic_physics
234 changes: 117 additions & 117 deletions tests/RegressionTests_cheyenne.gnu.log

Large diffs are not rendered by default.

726 changes: 363 additions & 363 deletions tests/RegressionTests_cheyenne.intel.log

Large diffs are not rendered by default.

712 changes: 356 additions & 356 deletions tests/RegressionTests_gaea.intel.log

Large diffs are not rendered by default.

236 changes: 119 additions & 117 deletions tests/RegressionTests_hera.gnu.log

Large diffs are not rendered by default.

714 changes: 357 additions & 357 deletions tests/RegressionTests_hera.intel.log

Large diffs are not rendered by default.

658 changes: 329 additions & 329 deletions tests/RegressionTests_jet.intel.log

Large diffs are not rendered by default.

706 changes: 353 additions & 353 deletions tests/RegressionTests_orion.intel.log

Large diffs are not rendered by default.

456 changes: 228 additions & 228 deletions tests/RegressionTests_wcoss_cray.log

Large diffs are not rendered by default.

971 changes: 491 additions & 480 deletions tests/RegressionTests_wcoss_dell_p3.log

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/rt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ if [[ $TESTS_FILE =~ '35d' ]]; then
TEST_35D=true
fi

BL_DATE=20211210
BL_DATE=20211213
if [[ $MACHINE_ID = hera.* ]] || [[ $MACHINE_ID = orion.* ]] || [[ $MACHINE_ID = cheyenne.* ]] || [[ $MACHINE_ID = gaea.* ]] || [[ $MACHINE_ID = jet.* ]] || [[ $MACHINE_ID = s4.* ]]; then
RTPWD=${RTPWD:-$DISKNM/NEMSfv3gfs/develop-${BL_DATE}/${RT_COMPILER^^}}
else
Expand Down

0 comments on commit 64fe240

Please sign in to comment.