Skip to content

Commit 099d8f8

Browse files
committed
Merge branch 'feature/mtg2'
2 parents 3254f06 + 1927065 commit 099d8f8

File tree

94 files changed

+18951
-1859
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+18951
-1859
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ ecbuild_add_option( FEATURE OUTPUT_MANAGER
107107

108108
ecbuild_add_option( FEATURE OUTPUT_MANAGER_ENCODER_REPORT
109109
CONDITION HAVE_OUTPUT_MANAGER
110-
DEFAULT OFF
110+
DEFAULT OFF
111111
DESCRIPTION "Enable generation of the encoding report" )
112112

113113
ecbuild_add_option( FEATURE OUTPUT_MANAGER_TOOL
@@ -116,7 +116,6 @@ ecbuild_add_option( FEATURE OUTPUT_MANAGER_TOOL
116116
DESCRIPTION "Enable generation of standalone tool" )
117117

118118
### export package info
119-
120119
set( MULTIO_CONFIG_DIR share/multio/config )
121120
set( MULTIO_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/src ${CMAKE_CURRENT_BINARY_DIR}/src )
122121
set( MULTIO_LIBRARIES multio )

cmake/fortran_compile_flags.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ if(CMAKE_Fortran_COMPILER_ID MATCHES "Cray")
1919

2020
elseif(CMAKE_Fortran_COMPILER_ID MATCHES "GNU")
2121
set(autopromote_flags "-fdefault-real-8 -fdefault-double-8")
22+
#set(checkbounds_flags "")
2223
set(checkbounds_flags "-fcheck=bounds")
2324
set(fpe_flags "-ffpe-trap=invalid,zero,overflow")
2425
set(initsnan_flags "-finit-real=snan")
@@ -29,7 +30,8 @@ elseif(CMAKE_Fortran_COMPILER_ID MATCHES "GNU")
2930

3031
elseif(CMAKE_Fortran_COMPILER_ID MATCHES "Intel")
3132
set(autopromote_flags "-real-size 64")
32-
set(checkbounds_flags "-check bounds")
33+
#set(checkbounds_flags "-check bounds")
34+
set(checkbounds_flags "")
3335
set(initsnan_flags "-init=snan")
3436
set(fpe_flags "-fpe0")
3537

src/ecom/CMakeLists.txt

Lines changed: 97 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ list( APPEND output_manager_src
9494
list( APPEND output_manager_src
9595
common/om_general_utils_c.c
9696
common/om_general_utils_mod.F90
97-
common/om_multio_utils_v2_mod.F90
97+
common/om_multio_utils_v3_mod.F90
9898
common/om_profile_mod.F90
9999
common/datetime_utils_mod.F90
100100
)
@@ -122,6 +122,7 @@ list( APPEND output_manager_src
122122
list( APPEND output_manager_src
123123
grib_info/encoding_info_mod.F90
124124
grib_info/yaml_rules_mod.F90
125+
grib_info/yaml_time_assumptions_mod.F90
125126
grib_info/grib_codes_mod.F90
126127
)
127128

@@ -167,7 +168,7 @@ list( APPEND output_manager_src
167168
# ----------------------------------------
168169
list( APPEND output_manager_src
169170
metadata/metadata_base_mod.F90
170-
metadata/multIO_metadata_v2_mod.F90
171+
metadata/multIO_metadata_v3_mod.F90
171172
metadata/grib_metadata_mod.F90
172173
metadata/metadata_factory_mod.F90
173174
metadata/metadata_tracer_mod.F90
@@ -285,20 +286,82 @@ ecbuild_add_library(
285286
set_target_properties( ecom PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/module/ecom )
286287
target_include_directories( ecom PUBLIC $<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/module/ecom> )
287288

289+
ecbuild_add_library(
290+
TARGET ecom-utils
291+
SOURCES
292+
tool/om_tool_distributor_mod.F90
293+
tool/om_tool_utils_mod.F90
294+
tool/om_tool_cfg_mod.F90
295+
296+
DEFINITIONS ${OUTPUT_MANAGER_BUILD_FLAVOUR}
297+
298+
PRIVATE_INCLUDES
299+
${CMAKE_BINARY_DIR}/include
300+
${OUTPUT_MANAGER_INCLUDE_PATH}
301+
302+
PUBLIC_LIBS
303+
fckit
304+
ecom
305+
306+
)
307+
308+
# Module directory
309+
set_target_properties( ecom-utils PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/module/ecom )
310+
target_include_directories( ecom-utils PUBLIC $<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/module/ecom> )
311+
288312

289313
if ( HAVE_OUTPUT_MANAGER_TOOL )
290314
ecbuild_add_executable(
291315

292316
TARGET ecom-feed
293317

294318
SOURCES
295-
tool/om_tool_cfg_mod.F90
296-
tool/om_tool_utils_mod.F90
297-
tool/om_tool_prog.F90
319+
tool/om_tool_feed_prog.F90
320+
321+
LIBS
322+
fckit
323+
ecom
324+
ecom-utils
325+
eccodes
326+
eccodes_f90
327+
multio-fapi
328+
329+
LINKER_LANGUAGE Fortran
330+
331+
)
332+
333+
334+
335+
ecbuild_add_executable(
336+
337+
TARGET ecom-list
338+
339+
SOURCES
340+
tool/om_tool_list_prog.F90
298341

299342
LIBS
300343
fckit
301344
ecom
345+
ecom-utils
346+
eccodes
347+
eccodes_f90
348+
multio-fapi
349+
350+
LINKER_LANGUAGE Fortran
351+
352+
)
353+
354+
ecbuild_add_executable(
355+
356+
TARGET ecom-conf
357+
358+
SOURCES
359+
tool/om_tool_conf_prog.F90
360+
361+
LIBS
362+
fckit
363+
ecom
364+
ecom-utils
302365
eccodes
303366
eccodes_f90
304367
multio-fapi
@@ -324,10 +387,36 @@ ecbuild_add_executable(
324387
LINKER_LANGUAGE Fortran
325388

326389
)
327-
endif()
328390

391+
#set(CMAKE_Fortran_COMPILER ${MPI_Fortran_COMPILER})
392+
#ecbuild_add_executable(
393+
#
394+
# TARGET ecom-dist-feed
395+
#
396+
# SOURCES
397+
# tool/om_tool_dist_feed_prog.F90
398+
#
399+
# INCLUDES
400+
# ${MPI_Fortran_INCLUDE_DIRS}
401+
#
402+
# LIBS
403+
# fckit
404+
# ecom
405+
# ecom-utils
406+
# eccodes
407+
# eccodes_f90
408+
# multio-fapi
409+
# ${MPI_Fortran_LIBRARIES}
410+
#
411+
# LINKER_LANGUAGE Fortran
412+
#
413+
#)
414+
415+
416+
#target_link_libraries( ecom-dist-feed PUBLIC ${MPI_Fortran_LIBRARIES} )
417+
#target_include_directories( ecom-dist-feed PRIVATE ${MPI_Fortran_INCLUDE_DIRS} )
418+
419+
endif()
329420

330-
#set_target_properties( ecom PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/module/ecom )
331-
#target_include_directories( ecom PUBLIC $<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/module/ecom> )
332421

333422
endif()

0 commit comments

Comments
 (0)