Skip to content

Commit 221da4b

Browse files
authored
Merge pull request #412 from GEOS-ESM/feature/deactivate-nonported-mapl3-components
2 parents 5f124d9 + 17d0d92 commit 221da4b

2 files changed

Lines changed: 54 additions & 47 deletions

File tree

CMakeLists.txt

Lines changed: 51 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -2,51 +2,56 @@ esma_check_if_debug()
22

33
option(HERMES_LIGHT "Build light-weighted GMAO_shared library" OFF)
44

5-
esma_add_subdirectories(GEOS_Shared)
5+
# not yet ported to MAPL3 - only build GMAO_mpeu, GMAO_hermes (light), and GEOS_Shared
6+
# for FVdycoreCubed_GridComp (needs m_set_eta, m_topo_remap, tropovars)
7+
# restore full build (and set HERMES_LIGHT OFF) when all components are ported
8+
set (HERMES_LIGHT ON)
9+
esma_add_subdirectories(GMAO_mpeu)
610
esma_add_subdirectories(GMAO_hermes)
11+
esma_add_subdirectories(GEOS_Shared)
712

8-
if ( NOT HERMES_LIGHT )
9-
10-
esma_add_subdirectories(
11-
GMAO_mpeu
12-
GMAO_pilgrim
13-
GMAO_etc
14-
GEOS_Util
15-
LANL_Shared
16-
GMAO_perllib
17-
GMAO_transf
18-
GMAO_stoch
19-
20-
GEOS_Pert
21-
GMAO_mfhdf3
22-
GMAO_gfioeos
23-
GMAO_ods
24-
GMAO_psas
25-
GMAO_gems
26-
GMAO_iret
27-
GMAO_pyobs
28-
GMAO_radmon
29-
30-
GMAO_ncdiag
31-
arpack
32-
pnagpack
33-
)
34-
35-
# Special case - GMAO_gfio is built twice with two different precisions.
36-
if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/GMAO_gfio)
37-
add_subdirectory (GMAO_gfio GMAO_gfio_r4)
38-
add_subdirectory (GMAO_gfio GMAO_gfio_r8)
39-
add_dependencies (GMAO_gfio_r4 GMAO_gfio_r8)
40-
endif ()
41-
42-
# the gmao2ioda directory just has scripts we want to install
43-
# but we only want to install it if it actually exists (i.e.,
44-
# it might be sparsed out in some fixtures
45-
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/gmao2ioda)
46-
install(
47-
DIRECTORY gmao2ioda
48-
DESTINATION bin
49-
USE_SOURCE_PERMISSIONS
50-
)
51-
endif()
52-
endif()
13+
# if ( NOT HERMES_LIGHT )
14+
#
15+
# esma_add_subdirectories(
16+
# GMAO_mpeu
17+
# GMAO_pilgrim
18+
# GMAO_etc
19+
# GEOS_Util
20+
# LANL_Shared
21+
# GMAO_perllib
22+
# GMAO_transf
23+
# GMAO_stoch
24+
#
25+
# GEOS_Pert
26+
# GMAO_mfhdf3
27+
# GMAO_gfioeos
28+
# GMAO_ods
29+
# GMAO_psas
30+
# GMAO_gems
31+
# GMAO_iret
32+
# GMAO_pyobs
33+
# GMAO_radmon
34+
#
35+
# GMAO_ncdiag
36+
# arpack
37+
# pnagpack
38+
# )
39+
#
40+
# # Special case - GMAO_gfio is built twice with two different precisions.
41+
# if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/GMAO_gfio)
42+
# add_subdirectory (GMAO_gfio GMAO_gfio_r4)
43+
# add_subdirectory (GMAO_gfio GMAO_gfio_r8)
44+
# add_dependencies (GMAO_gfio_r4 GMAO_gfio_r8)
45+
# endif ()
46+
#
47+
# # the gmao2ioda directory just has scripts we want to install
48+
# # but we only want to install it if it actually exists (i.e.,
49+
# # it might be sparsed out in some fixtures
50+
# if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/gmao2ioda)
51+
# install(
52+
# DIRECTORY gmao2ioda
53+
# DESTINATION bin
54+
# USE_SOURCE_PERMISSIONS
55+
# )
56+
# endif()
57+
# endif()

GMAO_hermes/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,11 @@ else ()
8181

8282
set (srcs
8383
m_set_eta.F90 shared_topo_remap.F90
84+
# not yet ported to MAPL3 - added for FVdycoreCubed_GridComp (m_topo_remap dependency chain)
85+
m_topo_remap.F90 m_dyn.f90 m_const.f90
8486
)
8587

86-
esma_add_library(${this} SRCS ${srcs} )
88+
esma_add_library(${this} SRCS ${srcs} DEPENDENCIES GMAO_mpeu)
8789
target_compile_options(${this} PRIVATE ${flags})
8890

8991
endif ()

0 commit comments

Comments
 (0)