-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: WRF CMake Changes (#739)
* Renaming .F files to .F90 * Fixing dependency for nudging build * Moving files from .f90 -> .F90 * Renaming .F to .F90 coupled WRF files * Renaming .F to .F90 coupled WRF files * CMake: bringing over some changes from WRF CMake changes. Tabs to spaces and enforcing uniform style guide * Bringing over a few edits to some CMakeLists.txt files from the WRF PR#2009
- Loading branch information
1 parent
3dc1b88
commit 7cbd1e4
Showing
110 changed files
with
527 additions
and
504 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
add_library(hydro_data_rec STATIC | ||
module_gw_gw2d_data.F | ||
module_rt_inc.F | ||
module_namelist_inc.F | ||
module_RT_data.F | ||
module_namelist.F | ||
module_gw_gw2d_data.F90 | ||
module_rt_inc.F90 | ||
module_namelist_inc.F90 | ||
module_RT_data.F90 | ||
module_namelist.F90 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# build the version static library | ||
add_library(hydro_debug_utils STATIC | ||
debug_dump_variable.F | ||
debug_dump_variable.F90 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
# build the version static library | ||
add_library(hydro_driver STATIC | ||
module_HYDRO_drv.F | ||
module_HYDRO_drv.F90 | ||
) | ||
|
||
target_link_libraries(hydro_driver PUBLIC hydro_mpp) | ||
target_link_libraries(hydro_driver PUBLIC hydro_data_rec) | ||
target_link_libraries(hydro_driver PUBLIC hydro_routing) | ||
target_link_libraries(hydro_driver PUBLIC hydro_debug_utils) | ||
target_link_libraries(hydro_driver PUBLIC | ||
hydro_mpp | ||
hydro_data_rec | ||
hydro_routing | ||
hydro_debug_utils | ||
) | ||
|
||
if (WRF_HYDRO_NUDGING STREQUAL "1") | ||
target_link_libraries(hydro_driver PUBLIC hydro_nudging) | ||
endif (WRF_HYDRO_NUDGING STREQUAL "1") | ||
if(WRF_HYDRO_NUDGING STREQUAL "1") | ||
target_link_libraries(hydro_driver PUBLIC hydro_nudging) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
# build the orchestrator static library | ||
add_library(hydro_netcdf_layer STATIC | ||
netcdf_layer.f90 | ||
) | ||
netcdf_layer.F90 | ||
) | ||
|
||
target_link_libraries(hydro_netcdf_layer | ||
MPI::MPI_Fortran | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
add_library(noah STATIC | ||
module_sf_urban.F | ||
module_sf_noahlsm.F | ||
module_sf_urban.F | ||
module_sf_noahlsm.F | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
add_library(noah_util STATIC | ||
kwm_string_utilities.F | ||
module_date_utilities.F | ||
module_model_constants.F | ||
module_Noahlsm_utility.F | ||
module_sfcdif_wrf.F | ||
kwm_string_utilities.F | ||
module_date_utilities.F | ||
module_model_constants.F | ||
module_Noahlsm_utility.F | ||
module_sfcdif_wrf.F | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
add_library(noahmp_util STATIC | ||
kwm_string_utilities.F | ||
module_date_utilities.F | ||
module_model_constants.F | ||
module_wrf_utilities.F | ||
kwm_string_utilities.F | ||
module_date_utilities.F | ||
module_model_constants.F | ||
module_wrf_utilities.F | ||
) | ||
|
||
target_link_libraries(noahmp_util PUBLIC hydro_mpp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
add_subdirectory("surfex") | ||
|
||
add_library(noahmp_phys STATIC | ||
module_sf_noahmpdrv.F | ||
module_sf_noahmp_glacier.F | ||
module_sf_noahmp_groundwater.F | ||
module_sf_noahmplsm.F | ||
module_sf_noahmpdrv.F | ||
module_sf_noahmp_glacier.F | ||
module_sf_noahmp_groundwater.F | ||
module_sf_noahmplsm.F | ||
) | ||
|
||
target_link_libraries(noahmp_phys snowcro crocus_surfex) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
add_library(hydro_mpp STATIC | ||
CPL_WRF.F | ||
module_mpp_GWBUCKET.F | ||
module_mpp_ReachLS.F | ||
mpp_land.F | ||
hashtable.F | ||
CPL_WRF.F90 | ||
module_mpp_GWBUCKET.F90 | ||
module_mpp_ReachLS.F90 | ||
mpp_land.F90 | ||
hashtable.F90 | ||
) | ||
|
||
target_link_libraries(hydro_mpp ${MPI_Fortran_LIBRARIES}) | ||
target_link_libraries(hydro_mpp MPI::MPI_Fortran) | ||
target_include_directories(hydro_mpp PUBLIC | ||
${MPI_Fortran_MODULE_DIR} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
# build the orchestrator static library | ||
add_library(hydro_orchestrator STATIC | ||
config.f90 | ||
io_manager.f90 | ||
orchestrator.f90 | ||
) | ||
config.F90 | ||
io_manager.F90 | ||
orchestrator.F90 | ||
) | ||
|
||
add_dependencies(hydro_orchestrator hydro_netcdf_layer) | ||
add_dependencies(hydro_orchestrator hydro_utils) | ||
add_dependencies(hydro_orchestrator | ||
hydro_netcdf_layer | ||
hydro_utils | ||
) | ||
|
||
target_link_libraries(hydro_orchestrator PUBLIC hydro_netcdf_layer) | ||
target_link_libraries(hydro_orchestrator PUBLIC hydro_utils) | ||
target_link_libraries(hydro_orchestrator PRIVATE | ||
hydro_netcdf_layer | ||
hydro_utils | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.