Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/adding minmaxtrh revised #50

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,5 @@ add_subdirectory(ens_mean_recenter)
add_subdirectory(FV3_ensmean_recenter)
add_subdirectory(bufrsnd)
add_subdirectory(rtma_minmaxtrh)
add_subdirectory(pm)
add_subdirectory(pm)

17 changes: 7 additions & 10 deletions rtma_minmaxtrh/maxtbg.fd/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
list(APPEND src_rrfs_mint
writeminbg.f90
list(APPEND src_rrfs_maxt
writemaxbg.f90
param.incl
maxmin.f
maxmin_ak.f
domain_dims.f
calcminbg.f90
calcmaxbg.f90
makefile)

add_executable(rrfs_mint.exe ${src_rrfs_mint})
target_link_libraries(rrfs_mint.exe PRIVATE w3nco::w3nco_4
add_executable(rrfs_maxt.exe ${src_rrfs_maxt})
target_link_libraries(rrfs_maxt.exe PRIVATE w3nco::w3nco_4
PRIVATE w3emc::w3emc_4
PRIVATE bufr::bufr_4
PRIVATE NetCDF::NetCDF_Fortran
PRIVATE MPI::MPI_Fortran)

if(OpenMP_Fortran_FOUND)
target_link_libraries(rrfs_mint.exe PRIVATE OpenMP::OpenMP_Fortran)
target_link_libraries(rrfs_maxt.exe PRIVATE OpenMP::OpenMP_Fortran)
endif()

install(
TARGETS rrfs_mint.exe
TARGETS rrfs_maxt.exe
EXPORT ${PROJECT_NAME}Exports
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
Expand Down
5 changes: 1 addition & 4 deletions rtma_minmaxtrh/minrh.fd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,15 @@ kinds.f90
domain_dims.f
constants.f90
calcrh.f90)

add_executable(rrfs_minrh.exe ${src_rrfs_minrh})
target_link_libraries(rrfs_minh.exe PRIVATE w3nco::w3nco_4
target_link_libraries(rrfs_minrh.exe PRIVATE w3nco::w3nco_4
PRIVATE w3emc::w3emc_4
PRIVATE bufr::bufr_4
PRIVATE NetCDF::NetCDF_Fortran
PRIVATE MPI::MPI_Fortran)

if(OpenMP_Fortran_FOUND)
target_link_libraries(rrfs_minrh.exe PRIVATE OpenMP::OpenMP_Fortran)
endif()

install(
TARGETS rrfs_minrh.exe
EXPORT ${PROJECT_NAME}Exports
Expand Down