-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into refactoring_bugfix_cavity
- Loading branch information
Showing
389 changed files
with
188,508 additions
and
79,263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Run CICD on Lumi (using .gitlab-ci.yml) | ||
|
||
on: | ||
push: | ||
branches: | ||
- refactoring | ||
- lumi_gpu_evatali | ||
|
||
jobs: | ||
gitlabsync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Check out code" | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: "Gitlab mirror and CI" | ||
uses: "tiggi/gitlab-mirror-and-ci-action@tiggi/fixes" | ||
with: | ||
args: "https://gitlab.com/lumi-cicd/fesom2.git" | ||
env: | ||
FOLLOW_TAGS: "true" | ||
FORCE_PUSH: "true" | ||
GITLAB_HOSTNAME: "gitlab.com" | ||
GITLAB_USERNAME: "tiggi" | ||
GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }} | ||
GITLAB_PROJECT_ID: "51374059" | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
fesom-job: | ||
stage: build | ||
variables: | ||
SCHEDULER_PARAMETERS: "-N 1 -n 56 --mem=32G -p dev-g -t 00:30:00 -A project_462000376" | ||
tags: | ||
- lumi | ||
# artifacts: | ||
# paths: | ||
# - fesom_build.log | ||
script: | ||
- echo "building fesom branch" | ||
- bash -l configure.sh lumi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Read the Docs configuration file for Sphinx projects | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the OS, Python version and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.9" | ||
# You can also specify other tool versions: | ||
# nodejs: "20" | ||
# rust: "1.70" | ||
# golang: "1.20" | ||
|
||
# Build documentation in the "docs/" directory with Sphinx | ||
sphinx: | ||
configuration: docs/conf.py | ||
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs | ||
# builder: "dirhtml" | ||
# Fail on all warnings to avoid broken references | ||
# fail_on_warning: true | ||
|
||
# Optionally build your docs in additional formats such as PDF and ePub | ||
# formats: | ||
# - epub | ||
|
||
# Optional but recommended, declare the Python requirements required | ||
# to build your documentation | ||
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html | ||
python: | ||
install: | ||
- requirements: docs/requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,37 @@ | ||
cmake_minimum_required(VERSION 3.9) | ||
cmake_minimum_required(VERSION 3.16) | ||
|
||
# set default build type cache entry (do so before project(...) is called, which would create this cache entry on its own) | ||
if(NOT CMAKE_BUILD_TYPE) | ||
message(STATUS "setting default build type: Release") | ||
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.") | ||
message(STATUS "setting default build type: Release") | ||
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.") | ||
endif() | ||
|
||
project(FESOM2.0) | ||
|
||
set(CMAKE_VERBOSE_MAKEFILE ON) | ||
|
||
option(BUILD_SHARED_LIBS "Build using shared libraries" OFF) # cmake-internal switch to toggle if library targets are being build as STATIC or SHARED, see https://cmake.org/cmake/help/latest/guide/tutorial/Selecting%20Static%20or%20Shared%20Libraries.html | ||
set(BUILD_SHARED_LIBS ON CACHE BOOL "Default to using shared libs") | ||
set(TOPLEVEL_DIR ${CMAKE_CURRENT_LIST_DIR}) | ||
set(FESOM_COUPLED OFF CACHE BOOL "compile fesom standalone or with oasis support (i.e. coupled)") | ||
set(OIFS_COUPLED OFF CACHE BOOL "compile fesom coupled to OpenIFS. (Also needs FESOM_COUPLED to work)") | ||
set(CRAY OFF CACHE BOOL "compile with cray ftn") | ||
set(USE_ICEPACK OFF CACHE BOOL "compile fesom with the Iceapck modules for sea ice column physics.") | ||
set(OPENMP_REPRODUCIBLE OFF CACHE BOOL "serialize OpenMP loops that are critical for reproducible results") | ||
|
||
#set(VERBOSE OFF CACHE BOOL "toggle debug output") | ||
set(RECOM_COUPLED OFF CACHE BOOL "compile fesom including biogeochemistry, REcoM3") | ||
set(CISO_COUPLED OFF CACHE BOOL "compile ciso coupled to REcoM3. RECOM_COUPLED has to be active") | ||
set(USE_MULTIO OFF CACHE BOOL "Use MULTIO for IO, either grib or binary for now. This also means path to MULTIO installation has to provided using env MULTIO_INSTALL_PATH='..' and multio configuration yamls must be present to run the model with MULTIO") | ||
set(OASIS_WITH_YAC OFF CACHE BOOL "Useing a version of OASIS compiled with YAC instead of SCRIP for interpolation?") | ||
set(ASYNC_ICEBERGS ON CACHE BOOL "compile fesom with or without support for asynchronous iceberg computations") | ||
set(VERBOSE OFF CACHE BOOL "toggle debug output") | ||
#add_subdirectory(oasis3-mct/lib/psmile) | ||
add_subdirectory(src) | ||
|
||
foreach( _file fesom-config.cmake fesom-config-version.cmake fesom-targets.cmake ) | ||
execute_process( COMMAND ${CMAKE_COMMAND} -E create_symlink ${PROJECT_BINARY_DIR}/src/${_file} ${PROJECT_BINARY_DIR}/${_file} ) | ||
endforeach() | ||
|
||
# Define ${PROJECT_NAME}_DIR in PARENT_SCOPE so that a `find_package( <this-project> )` in a bundle | ||
# will easily find the project without requiring a `HINT <this-project>_BINARY_DIR` argument | ||
if( NOT CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR ) | ||
# Guard needed because PARENT_SCOPE cannot be used in top-level CMake project | ||
|
||
set( fesom_DIR ${fesom_DIR} PARENT_SCOPE ) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# FindMULTIO.cmake | ||
|
||
include(FindPackageHandleStandardArgs) | ||
|
||
# Use the environment variable as a hint | ||
set(MULTIO_HINT_PATH $ENV{MULTIO_INSTALL_PATH}) | ||
|
||
# Try to find the library | ||
find_library(MULTIO_FAPI_LIBRARY | ||
NAMES multio-fapi # Adjust this if the library name is different | ||
HINTS ${MULTIO_HINT_PATH}/lib | ||
) | ||
|
||
# Try to find the dependency library | ||
find_library(MULTIO_API_LIBRARY | ||
NAMES multio-api | ||
HINTS ${MULTIO_HINT_PATH}/lib | ||
) | ||
|
||
# Try to find the dependency library | ||
find_library(MULTIO_LIBRARY | ||
NAMES multio | ||
HINTS ${MULTIO_HINT_PATH}/lib | ||
) | ||
|
||
# Try to find the Fortran module path | ||
find_path(MULTIO_MODULE_PATH | ||
NAMES multio_api.mod # Replace <module_name> with an actual module name you expect to find | ||
HINTS ${MULTIO_HINT_PATH}/module ${MULTIO_HINT_PATH}/multio/module | ||
) | ||
|
||
|
||
# Aggregate the libraries for easier linking | ||
set(MULTIO_LIBRARIES ${MULTIO_FAPI_LIBRARY} ${MULTIO_API_LIBRARY} ${MULTIO_LIBRARY}) | ||
|
||
|
||
# Handle the results | ||
find_package_handle_standard_args(MULTIO | ||
REQUIRED_VARS MULTIO_LIBRARIES MULTIO_MODULE_PATH | ||
FOUND_VAR MULTIO_FOUND | ||
) | ||
|
||
# If found, set the MULTIO_LIBRARIES and MULTIO_INCLUDE_DIRS variables for easy use | ||
if(MULTIO_FOUND) | ||
set(MULTIO_INCLUDE_DIRS ${MULTIO_MODULE_PATH}) | ||
endif() | ||
|
||
# Mark variables as advanced | ||
mark_as_advanced(MULTIO_LIBRARY MULTIO_MODULE_PATH) | ||
|
Oops, something went wrong.