forked from GEOS-ESM/MAPL
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
816 additions
and
19 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
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
install (PROGRAMS run_tutorial_case.sh DESTINATION bin) | ||
|
||
add_subdirectory (driver_app) | ||
add_subdirectory (grid_comps) | ||
#add_subdirectory (tutorials) |
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,8 @@ | ||
set (srcs | ||
Example_Driver.F90 | ||
) | ||
|
||
ecbuild_add_executable (TARGET Example_Driver.x SOURCES ${srcs}) | ||
target_link_libraries (Example_Driver.x PRIVATE MAPL OpenMP::OpenMP_Fortran FLAP::FLAP esmf) | ||
target_compile_definitions (Example_Driver.x PRIVATE $<$<BOOL:${USE_EXTDATA2G}>:BUILD_WITH_EXTDATA2G>) | ||
|
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,22 @@ | ||
#define I_AM_MAIN | ||
|
||
#include "MAPL_Generic.h" | ||
|
||
program Example_Driver | ||
use MPI | ||
use MAPL | ||
implicit none | ||
|
||
type (MAPL_Cap) :: cap | ||
type (MAPL_FlapCLI) :: cli | ||
type (MAPL_CapOptions) :: cap_options | ||
integer :: status | ||
|
||
cli = MAPL_FlapCLI(description = 'GEOS AGCM', & | ||
authors = 'GMAO') | ||
cap_options = MAPL_CapOptions(cli) | ||
cap = MAPL_Cap('example', cap_options = cap_options) | ||
call cap%run(_RC) | ||
|
||
end program Example_Driver | ||
|
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,6 @@ | ||
add_subdirectory (hello_world_gridcomp) | ||
add_subdirectory (no_children_gridcomp) | ||
add_subdirectory (leaf_comp_a) | ||
add_subdirectory (leaf_comp_b) | ||
add_subdirectory (one_child_gridcomp) | ||
add_subdirectory (two_siblings_gridcomp) |
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,10 @@ | ||
esma_set_this (OVERRIDE MAPL.hello_world_gridcomp) | ||
set (srcs | ||
HelloWorld_GridComp.F90 | ||
) | ||
|
||
esma_add_library (${this} SRCS ${srcs} DEPENDENCIES MAPL.shared MAPL TYPE ${MAPL_LIBRARY_TYPE}) | ||
target_link_libraries (${this} PRIVATE esmf OpenMP::OpenMP_Fortran) | ||
target_include_directories (${this} PUBLIC $<BUILD_INTERFACE:${MAPL_SOURCE_DIR}/include>) | ||
set_target_properties (${this} PROPERTIES Fortran_MODULE_DIRECTORY ${include_${this}}) | ||
#target_compile_definitions(${this} PRIVATE SYSTEM_DSO_SUFFIX="${CMAKE_SHARED_LIBRARY_SUFFIX}") |
Oops, something went wrong.