Skip to content

Commit

Permalink
Fix hardcoded atlas grids settings for ctests (#66)
Browse files Browse the repository at this point in the history
* Unset atlas grid environment variables and move variables to ci CmakeLists
  • Loading branch information
DJDavies2 authored Jan 4, 2024
1 parent eb29fb8 commit b11147d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ ecbuild_debug( " eckit_FEATURES : [${eckit_FEATURES}]" )
find_package( atlas 0.29 REQUIRED )
ecbuild_debug( " atlas_FEATURES: [${atlas_FEATURES}]" )

find_package( atlas-orca REQUIRED )
ecbuild_debug( " atlas_orca_FEATURES: [${atlas_orca_FEATURES}]" )

find_package( oops REQUIRED )
ecbuild_debug( " oops_FEATURES : [${oops_FEATURES}]" )

Expand Down
5 changes: 5 additions & 0 deletions ci/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ project( orca-jedi-ci VERSION 1.0 LANGUAGES C CXX Fortran )
set( ENABLE_MPI ON CACHE BOOL "Compile with MPI" )
set( ENABLE_OMP ON CACHE BOOL "Compile with OpenMP" )

LIST( APPEND ATLAS_TEST_ENVIRONMENT
ATLAS_ORCA_CACHING=1
ATLAS_CACHE_PATH=${CMAKE_BINARY_DIR}/share
PLUGINS_MANIFEST_PATH=${CMAKE_BINARY_DIR}/share/plugins )

add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/jedicmake" EXCLUDE_FROM_ALL)
if(NOT DEFINED jedicmake_DIR)
set(jedicmake_DIR "${CMAKE_BINARY_DIR}/jedicmake")
Expand Down
5 changes: 0 additions & 5 deletions src/tests/orca-jedi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ ecbuild_add_test( TARGET test_orcajedi_nemo_io_field_reader.x
SOURCES test_nemo_io_field_reader.cc
LIBS orcamodel )

LIST( APPEND ATLAS_TEST_ENVIRONMENT
ATLAS_ORCA_CACHING=1
ATLAS_CACHE_PATH=${CMAKE_BINARY_DIR}/share
PLUGINS_MANIFEST_PATH=${CMAKE_BINARY_DIR}/share/plugins )

ecbuild_add_test( TARGET test_orcajedi_nemo_io_field_writer.x
SOURCES test_nemo_io_field_writer.cc
ENVIRONMENT ${ATLAS_TEST_ENVIRONMENT}
Expand Down

0 comments on commit b11147d

Please sign in to comment.