From 3862d30d48c35ebfadece722c039c81ee198fae0 Mon Sep 17 00:00:00 2001 From: Soren Rasmussen Date: Wed, 22 May 2024 22:02:46 -0600 Subject: [PATCH] Bringing over a few edits to some CMakeLists.txt files from the WRF PR#2009 --- src/MPP/CMakeLists.txt | 3 +++ src/MPP/CPL_WRF.F90 | 12 ++++++------ src/OrchestratorLayer/CMakeLists.txt | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/MPP/CMakeLists.txt b/src/MPP/CMakeLists.txt index e15d58fe8..1eb929cc9 100644 --- a/src/MPP/CMakeLists.txt +++ b/src/MPP/CMakeLists.txt @@ -7,3 +7,6 @@ add_library(hydro_mpp STATIC ) target_link_libraries(hydro_mpp MPI::MPI_Fortran) +target_include_directories(hydro_mpp PUBLIC + ${MPI_Fortran_MODULE_DIR} +) diff --git a/src/MPP/CPL_WRF.F90 b/src/MPP/CPL_WRF.F90 index d7a5e0fb6..f2e06ec26 100644 --- a/src/MPP/CPL_WRF.F90 +++ b/src/MPP/CPL_WRF.F90 @@ -83,12 +83,12 @@ subroutine CPL_LAND_INIT(istart,iend,jstart,jend) dims(0) = 0 dims(1) = 0 do xx=1,total_pe_num - if(node_info(2,xx) .eq. (-1)) then - dims(0) = dims(0)+1 - endif - if(node_info(4,xx) .eq. (-1)) then - dims(1) = dims(1)+1 - endif + if(node_info(2,xx) .eq. (-1)) then + dims(0) = dims(0)+1 + endif + if(node_info(4,xx) .eq. (-1)) then + dims(1) = dims(1)+1 + endif enddo ndim = 2 diff --git a/src/OrchestratorLayer/CMakeLists.txt b/src/OrchestratorLayer/CMakeLists.txt index be8eb09e6..c0e1f4ad9 100644 --- a/src/OrchestratorLayer/CMakeLists.txt +++ b/src/OrchestratorLayer/CMakeLists.txt @@ -10,7 +10,7 @@ add_dependencies(hydro_orchestrator hydro_utils ) -target_link_libraries(hydro_orchestrator PUBLIC +target_link_libraries(hydro_orchestrator PRIVATE hydro_netcdf_layer hydro_utils )