Skip to content

Commit

Permalink
Updates to ensure CMake build works
Browse files Browse the repository at this point in the history
  • Loading branch information
islas committed Aug 26, 2024
1 parent ef76c68 commit 8fc1022
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,9 @@ list( APPEND PROJECT_COMPILE_DEFINITIONS_OPTIONS
# Only define if set, this is to use #ifdef/#ifndef preprocessors
# in code since cmake cannot handle basically any others :(
# https://gitlab.kitware.com/cmake/cmake/-/issues/17398
if ( ${USE_DOUBLE} )
list( APPEND PROJECT_COMPILE_DEFINITIONS_OPTIONS DOUBLE_PRECISION )
endif()
if ( ${ENABLE_CHEM} )
list( APPEND PROJECT_COMPILE_DEFINITIONS_OPTIONS WRF_CHEM=1 )
if ( ${ENABLE_KPP} )
Expand Down
2 changes: 0 additions & 2 deletions phys/module_mp_ntu.F
Original file line number Diff line number Diff line change
Expand Up @@ -665,8 +665,6 @@ REAL FUNCTION GAMLN(XX) ! Referred to
GAMLN = TMP+LOG(stp*ser/X)
#else
GAMLN = SNGL(TMP+LOG(stp*ser/X))
#else
! This is a temporary hack assuming double precision is 8 bytes.
#endif

END FUNCTION GAMLN
Expand Down

0 comments on commit 8fc1022

Please sign in to comment.