Skip to content

Commit

Permalink
Add hooks for Cloud-J repository for use with GEOS-Chem
Browse files Browse the repository at this point in the history
Cloud-J will need to be added to mepo to clone GEOS-ESM/Cloud-J branch
geos/develop as directory Cloud-J/@Cloud-J.

Signed-off-by: Lizzie Lundgren <[email protected]>
  • Loading branch information
lizziel committed Feb 9, 2024
1 parent d801035 commit 1baa5b9
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
esma_set_this ()

esma_add_subdirectories(Shared GOCART)
esma_add_subdirectories(Shared GOCART Cloud-J)

set (alldirs
GEOSpchem_GridComp
Expand Down
29 changes: 29 additions & 0 deletions Cloud-J/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
esma_set_this ()

esma_mepo_style(Cloud-J cloud_j_dir)

set (MODEL_GEOSCHEM TRUE) # Will need to rework to use with GMI instead
set (MAPL_ESMF TRUE)

set (srcs
${CMAKE_CURRENT_SOURCE_DIR}/${cloud_j_dir}/src/Core/cldj_sub_mod.F90
${CMAKE_CURRENT_SOURCE_DIR}/${cloud_j_dir}/src/Core/cldj_cmn_mod.F90
${CMAKE_CURRENT_SOURCE_DIR}/${cloud_j_dir}/src/Core/cldj_error_mod.F90
${CMAKE_CURRENT_SOURCE_DIR}/${cloud_j_dir}/src/Core/cldj_init_mod.F90
${CMAKE_CURRENT_SOURCE_DIR}/${cloud_j_dir}/src/Core/cldj_fjx_sub_mod.F90
${CMAKE_CURRENT_SOURCE_DIR}/${cloud_j_dir}/src/Core/cldj_osa_sub_mod.F90
)

# placeholder for excluding files from build
#list (REMOVE_ITEM srcs
# ${CMAKE_CURRENT_SOURCE_DIR}${cloud_j_dir}/src/Core/placeholder.F90
# )

# MAPL, ESMF, and netCDF not used but include here for potential future use
esma_add_library (${this}
SRCS ${srcs}
DEPENDENCIES MAPL esmf NetCDF::NetCDF_Fortran
)

target_compile_definitions(${this} PRIVATE MAPL_ESMF MODEL_GEOSCHEM)
set_target_properties (${this} PROPERTIES Fortran_MODULE_DIRECTORY ${include_${this}})
2 changes: 1 addition & 1 deletion GEOSCHEMchem_GridComp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ endif ()

esma_add_library (${this}
SRCS ${srcs}
DEPENDENCIES MAPL MAPL_cfio_r4 Chem_Base Chem_Shared HEMCO
DEPENDENCIES MAPL MAPL_cfio_r4 Chem_Base Chem_Shared HEMCO Cloud-J
OpenMP::OpenMP_Fortran esmf NetCDF::NetCDF_Fortran
)

Expand Down

0 comments on commit 1baa5b9

Please sign in to comment.