Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG.md
  • Loading branch information
mathomp4 committed Nov 5, 2024
2 parents a96afd6 + a580fce commit 612652b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Deprecated

## [4.7.0] - 2024-11-05
## [4.8.0] - 2024-11-05

### Added

- Added new `esma_capture_mepo_status` function (in `esma_support/esma_mepo_status.cmake`) to capture the output of `mepo status --hashes` when `mepo` was used to clone the fixture. It will output this into a file `MEPO_STATUS.rc` which is installed to `${CMAKE_INSTALL_PREFIX}/etc` and can be used to help determine the exact state of the fixture at build time.

## [4.7.0] - 2024-10-10

### Changed

- Support for building GEOSgcm with Spack using MAPL as library
- Update `esma_create_stub_component` to look for `mapl_stub.pl` in `$MAPL_BASE_DIR/etc` (which is a variable defined by ecbuild)
- Update `esma_generate_automatic_code` to look for `mapl_acg.pl` in `$MAPL_BASE_DIR/etc` (which is a variable defined by ecbuild)
- Require CMake 3.18 for features used in above updates
- Update to CircleCI orb v5

## [4.6.0] - 2024-09-05

### Added
Expand Down
10 changes: 8 additions & 2 deletions esma_support/esma_create_stub_component.cmake
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
# find_file REQUIRED requires CMake 3.18
cmake_minimum_required (VERSION 3.18)

macro (esma_create_stub_component srcs module)
list (APPEND ${srcs} ${module}.F90)

find_file (stub_generator
NAME mapl_stub.pl
PATHS ${MAPL_SOURCE_DIR}/Apps ${esma_etc}/MAPL)
PATHS ${MAPL_BASE_DIR}/etc ${MAPL_SOURCE_DIR}/Apps ${esma_etc}/MAPL
DOC "Path to MAPL stub generator"
REQUIRED
)

add_custom_command (
OUTPUT ${module}.F90
COMMAND ${stub_generator} ${module}Mod > ${module}.F90
MAIN_DEPENDENCY ${stub_generator}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Making component stub for ${module}Mod in ${module}.F90"
)
)
add_custom_target(stub_${module} DEPENDS ${module}.F90)

endmacro ()
Expand Down
15 changes: 12 additions & 3 deletions esma_support/esma_generate_automatic_code.cmake
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# Generate headers and resource files for GOCART components

cmake_minimum_required (VERSION 3.18)

set (acg_flags -v)

macro (new_esma_generate_automatic_code
target registry headers rcs headers_destination rcs_destination flags)

find_file (generator
NAME mapl_acg.pl
PATHS ${MAPL_SOURCE_DIR}/Apps ${esma_etc}/MAPL)
PATHS ${MAPL_BASE_DIR}/etc ${MAPL_SOURCE_DIR}/Apps ${esma_etc}/MAPL
DOC "Path to the perl MAPL ACG generator"
)

add_custom_command (
OUTPUT ${rcs}
Expand Down Expand Up @@ -59,7 +63,9 @@ macro (esma_generate_gmi_code target type)

find_file (generator
NAME mapl_acg.pl
PATHS ${MAPL_SOURCE_DIR}/Apps ${esma_etc}/MAPL)
PATHS ${MAPL_BASE_DIR}/etc ${MAPL_SOURCE_DIR}/Apps ${esma_etc}/MAPL
DOC "Path to the perl MAPL ACG generator"
)

add_custom_command (
# TARGET ${this}
Expand All @@ -85,7 +91,10 @@ macro (esma_generate_automatic_code this name destination flags)

find_file (generator
NAME mapl_acg.pl
PATHS ${MAPL_SOURCE_DIR}/Apps ${esma_etc}/MAPL)
PATHS ${MAPL_BASE_DIR}/etc ${MAPL_SOURCE_DIR}/Apps ${esma_etc}/MAPL
DOC "Path to the perl MAPL ACG generator"
REQUIRED
)

add_custom_command (
OUTPUT ${name}_ExportSpec___.h ${name}_GetPointer___.h ${name}_History___.rc
Expand Down

0 comments on commit 612652b

Please sign in to comment.