diff --git a/CMakeLists.txt b/CMakeLists.txt index c32a12907..6ca6a03ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -208,12 +208,13 @@ target_include_directories(ccpp_physics PUBLIC target_link_libraries(ccpp_physics PRIVATE MPI::MPI_Fortran) target_link_libraries(ccpp_physics PUBLIC w3emc::w3emc_d NetCDF::NetCDF_Fortran - ) + ) if(ip_FOUND) target_link_libraries(ccpp_physics PUBLIC ip::ip_d) else() target_link_libraries(ccpp_physics PUBLIC sp::sp_d) endif() + #add FMS for FV3 only if(FV3 OR MPAS) target_link_libraries(ccpp_physics PUBLIC fms) diff --git a/physics/Interstitials/UFS_SCM_NEPTUNE/sfcsub.F b/physics/Interstitials/UFS_SCM_NEPTUNE/sfcsub.F index b779e50ba..8ba254329 100644 --- a/physics/Interstitials/UFS_SCM_NEPTUNE/sfcsub.F +++ b/physics/Interstitials/UFS_SCM_NEPTUNE/sfcsub.F @@ -8,6 +8,7 @@ !! and setrmsk(). module sfccyc_module use machine , only : kind_io8,kind_io4 + use sp_mod implicit none save