Skip to content

Commit

Permalink
Fix for NEMO SP builds
Browse files Browse the repository at this point in the history
  • Loading branch information
awnawab authored and wdeconinck committed Oct 7, 2024
1 parent e234633 commit 98551c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmake/ecwam_expand_drv_types.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

macro( ecwam_expand_drv_types )

if( ${PNAME}_OCEANMODEL_HAVE_SINGLE_PRECISION )
if( ${OCEAN_PREC} STREQUAL SP )
list(APPEND FYPP_ARGS -DPARKIND1_SINGLE_NEMO)
endif()

Expand Down
6 changes: 3 additions & 3 deletions src/ecwam/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -405,11 +405,11 @@ endif()
set( ${PNAME}_OCEANMODEL_LIBRARIES "" )
if( HAVE_OCEAN_COUPLING )
list(APPEND ECWAM_DEFINITIONS WITH_NEMO )
if( ${OCEAN_PREC} STREQUAL SP )
list(APPEND ECWAM_DEFINITIONS PARKIND1_SINGLE_NEMO )
endif()
set( ${PNAME}_OCEANMODEL_LIBRARIES nemogcmcoup.${OCEAN_PREC} )
endif()
if( ${OCEAN_PREC} STREQUAL SP )
list(APPEND ECWAM_DEFINITIONS PARKIND1_SINGLE_NEMO )
endif()

if( HAVE_ECFLOW )
list(APPEND ECWAM_PRIVATE_DEFINITIONS WAM_HAVE_ECFLOW)
Expand Down

0 comments on commit 98551c8

Please sign in to comment.