-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3051 from GEOS-ESM/develop
GitFlow: Merge develop into main for 2.48 release
- Loading branch information
Showing
262 changed files
with
4,203 additions
and
1,308 deletions.
There are no files selected for viewing
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
Validating CODEOWNERS rules …
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,32 @@ | ||
esma_set_this (OVERRIDE MAPL.test_utilities) | ||
|
||
set(MODULE_DIRECTORY "${esma_include}/Tests") | ||
|
||
set (srcs | ||
ExtDataDriverGridComp.F90 | ||
ExtDataRoot_GridComp.F90 | ||
ExtDataDriver.F90 | ||
ExtDataDriverMod.F90 | ||
VarspecDescription.F90 | ||
) | ||
|
||
esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL NetCDF::NetCDF_Fortran NetCDF::NetCDF_C TYPE ${MAPL_LIBRARY_TYPE}) | ||
|
||
if (BUILD_WITH_FARGPARSE) | ||
|
||
ecbuild_add_executable (TARGET ExtDataDriver.x SOURCES ${srcs}) | ||
target_link_libraries (ExtDataDriver.x PRIVATE MAPL FARGPARSE::fargparse ESMF::ESMF) | ||
# CMake has an OpenMP issue with NAG Fortran: https://gitlab.kitware.com/cmake/cmake/-/issues/21280 | ||
if (NOT CMAKE_Fortran_COMPILER_ID MATCHES "NAG") | ||
target_link_libraries(ExtDataDriver.x PRIVATE OpenMP::OpenMP_Fortran) | ||
endif () | ||
ecbuild_add_executable (TARGET ExtDataDriver.x SOURCES ExtDataDriver.F90 ExtDataDriverGridComp.F90 ExtDataDriverMod.F90) | ||
target_link_libraries (ExtDataDriver.x PRIVATE MAPL MAPL.test_utilities FARGPARSE::fargparse ESMF::ESMF OpenMP::OpenMP_Fortran) | ||
set_target_properties(ExtDataDriver.x PROPERTIES Fortran_MODULE_DIRECTORY ${MODULE_DIRECTORY}) | ||
target_compile_definitions (ExtDataDriver.x PRIVATE $<$<BOOL:${USE_EXTDATA2G}>:BUILD_WITH_EXTDATA2G>) | ||
add_subdirectory(ExtData_Testing_Framework EXCLUDE_FROM_ALL) | ||
|
||
ecbuild_add_executable (TARGET pfio_MAPL_demo.x SOURCES pfio_MAPL_demo.F90) | ||
target_link_libraries (pfio_MAPL_demo.x PRIVATE MAPL FARGPARSE::fargparse ESMF::ESMF) | ||
# CMake has an OpenMP issue with NAG Fortran: https://gitlab.kitware.com/cmake/cmake/-/issues/21280 | ||
if (NOT CMAKE_Fortran_COMPILER_ID MATCHES "NAG") | ||
target_link_libraries(pfio_MAPL_demo.x PRIVATE OpenMP::OpenMP_Fortran) | ||
endif () | ||
target_link_libraries (pfio_MAPL_demo.x PRIVATE MAPL FARGPARSE::fargparse ESMF::ESMF OpenMP::OpenMP_Fortran) | ||
set_target_properties(pfio_MAPL_demo.x PROPERTIES Fortran_MODULE_DIRECTORY ${MODULE_DIRECTORY}) | ||
|
||
ecbuild_add_executable (TARGET MAPL_demo_fargparse.x SOURCES MAPL_demo_fargparse.F90) | ||
target_link_libraries (MAPL_demo_fargparse.x PRIVATE MAPL FARGPARSE::fargparse ESMF::ESMF) | ||
# CMake has an OpenMP issue with NAG Fortran: https://gitlab.kitware.com/cmake/cmake/-/issues/21280 | ||
if (NOT CMAKE_Fortran_COMPILER_ID MATCHES "NAG") | ||
target_link_libraries(MAPL_demo_fargparse.x PRIVATE OpenMP::OpenMP_Fortran) | ||
endif () | ||
target_link_libraries (MAPL_demo_fargparse.x PRIVATE MAPL FARGPARSE::fargparse ESMF::ESMF OpenMP::OpenMP_Fortran) | ||
set_target_properties(MAPL_demo_fargparse.x PROPERTIES Fortran_MODULE_DIRECTORY ${MODULE_DIRECTORY}) | ||
|
||
ecbuild_add_executable (TARGET CapDriver.x SOURCES CapDriver.F90) | ||
target_link_libraries (CapDriver.x PRIVATE MAPL MAPL.test_utilities FARGPARSE::fargparse ESMF::ESMF OpenMP::OpenMP_Fortran) | ||
set_target_properties(CapDriver.x PROPERTIES Fortran_MODULE_DIRECTORY ${MODULE_DIRECTORY}) | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#define I_AM_MAIN | ||
|
||
#include "MAPL_Generic.h" | ||
|
||
program CapDriver_Main | ||
use MPI | ||
use MAPL | ||
use ExtDataUtRoot_GridCompMod, only: ROOT_SetServices => SetServices | ||
implicit none | ||
|
||
character(len=*), parameter :: Iam="CapDriver_Main" | ||
type (MAPL_Cap) :: cap | ||
type (MAPL_FargparseCLI) :: cli | ||
type (MAPL_CapOptions) :: cap_options | ||
integer :: status | ||
|
||
cli = MAPL_FargparseCLI() | ||
cap_options = MAPL_CapOptions(cli) | ||
cap = MAPL_Cap('Root', ROOT_SetServices, cap_options = cap_options) | ||
|
||
call cap%run(_RC) | ||
|
||
end program CapDriver_Main | ||
|
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
Oops, something went wrong.