Skip to content

Commit

Permalink
Bringing over a few edits to some CMakeLists.txt files from the WRF P…
Browse files Browse the repository at this point in the history
…R#2009
  • Loading branch information
scrasmussen committed Jul 20, 2024
1 parent 48e043f commit 3862d30
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions src/MPP/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
)
12 changes: 6 additions & 6 deletions src/MPP/CPL_WRF.F90
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/OrchestratorLayer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

0 comments on commit 3862d30

Please sign in to comment.