Skip to content

Commit

Permalink
WIP: Initial fortran module meant to expose functionalities to the c API
Browse files Browse the repository at this point in the history
  • Loading branch information
MircoValentiniECMWF committed Dec 28, 2024
1 parent 1c93255 commit b253ba8
Show file tree
Hide file tree
Showing 7 changed files with 534 additions and 22 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ ecbuild_add_option( FEATURE HEALPIX_EXAMPLES

### Definitions used by the output manager
ecbuild_add_option( FEATURE OUTPUT_MANAGER
DEFAULT ON
DEFAULT ON
DESCRIPTION "Build the output manager" )

ecbuild_add_option( FEATURE OUTPUT_MANAGER_ENCODER_REPORT
CONDITION HAVE_OUTPUT_MANAGER
DEFAULT OFF
DEFAULT OFF
DESCRIPTION "Enable generation of the encoding report" )

ecbuild_add_option( FEATURE OUTPUT_MANAGER_TOOL
Expand All @@ -114,7 +114,7 @@ ecbuild_add_option( FEATURE OUTPUT_MANAGER_TOOL

### export package info
set( MULTIO_CONFIG_DIR share/multio/config )
set( MULTIOM_CONFIG_DIR share/multiom )
set( MULTIOM_CONFIG_DIR share/multiom )
set( MULTIO_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/src ${CMAKE_CURRENT_BINARY_DIR}/src )
set( MULTIO_LIBRARIES multio )

Expand Down
2 changes: 2 additions & 0 deletions src/multiom/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ set( DOFFSET " ")
#
# + ADD SUB-DIRECTORIES
# =====================
add_subdirectory( api )
add_subdirectory( common )
add_subdirectory( configuration )
add_subdirectory( containers )
Expand All @@ -123,6 +124,7 @@ add_subdirectory( tools )
# + ADD LOCAL FILES
# =================
list( APPEND output_manager_src
${MULTIOM_API_SOURCES}
${MULTIOM_COMMON_SOURCES}
${MULTIOM_CONFIGURATION_SOURCES}
${MULTIOM_CONTAINERS_SOURCES}
Expand Down
23 changes: 23 additions & 0 deletions src/multiom/api/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
set(MULTIOM_API_DIR ${CMAKE_CURRENT_SOURCE_DIR})

# Enter in the module
message("${OFFSET} + API sources: ${MULTIOM_API_DIR}")

# Recursive print
set(OFFSET ${OFFSET}${DOFFSET})

# Collect source files in module2
set( MULTIOM_API_SOURCES
${MULTIOM_API_DIR}/api_wrapper_mod.F90
CACHE INTERNAL "List of all sources in API directory"
)

# Optionally, message what has been appended for debugging
foreach(source_file IN LISTS MULTIOM_API_SOURCES)

# Extract the filename (without the directory)
get_filename_component(filename ${source_file} NAME)

# Print the filename
message("${OFFSET} - ${filename}")
endforeach()
Loading

0 comments on commit b253ba8

Please sign in to comment.