-
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 'refactoring' into mzapponi_refactoring
- Loading branch information
Showing
45 changed files
with
2,114 additions
and
1,034 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
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
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
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) | ||
|
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,19 @@ | ||
find_path(OASIS_Fortran_INCLUDE_DIRECTORIES mod_oasis.mod HINTS ${TOPLEVEL_DIR}/../oasis/build/lib/psmile) | ||
find_library(OASIS_Fortran_LIBRARIES psmile HINTS ${TOPLEVEL_DIR}/../oasis/build/lib/psmile) | ||
|
||
find_path(MCT_Fortran_INCLUDE_DIRECTORIES mct_mod.mod HINTS ${TOPLEVEL_DIR}/../oasis/build/lib/psmile/mct) | ||
find_library(MCT_Fortran_LIBRARIES mct HINTS ${TOPLEVEL_DIR}/../oasis/build/lib/psmile/mct) | ||
|
||
find_path(MPEU_Fortran_INCLUDE_DIRECTORIES m_mpout.mod HINTS ${TOPLEVEL_DIR}/../oasis/build/lib/psmile/mct) | ||
find_library(MPEU_Fortran_LIBRARIES mpeu HINTS ${TOPLEVEL_DIR}/../oasis/build/lib/psmile/mct) | ||
|
||
find_path(SCRIP_Fortran_INCLUDE_DIRECTORIES remap_bicubic_reduced.mod HINTS ${TOPLEVEL_DIR}/../oasis/build/lib/psmile/scrip) | ||
find_library(SCRIP_Fortran_LIBRARIES scrip HINTS ${TOPLEVEL_DIR}/../oasis/build/lib/psmile/scrip) | ||
|
||
find_path(YAC_Fortran_INCLUDE_DIRECTORIES mo_yac_utils.mod HINTS ${TOPLEVEL_DIR}/../oasis/lib/yac/include) | ||
find_library(YACUTILS_Fortran_LIBRARIES yac_utils HINTS ${TOPLEVEL_DIR}/../oasis/lib/yac/lib) | ||
find_library(YACCORE_Fortran_LIBRARIES yac_core HINTS ${TOPLEVEL_DIR}/../oasis/lib/yac/lib) | ||
|
||
find_path(YAXT_Fortran_INCLUDE_DIRECTORIES yaxt.mod HINTS ${TOPLEVEL_DIR}/../oasis/lib/yaxt/include) | ||
find_library(YAXT_Fortran_LIBRARIES yaxt HINTS ${TOPLEVEL_DIR}/../oasis/lib/yaxt/lib) | ||
find_library(YAXTC_Fortran_LIBRARIES yaxt_c HINTS ${TOPLEVEL_DIR}/../oasis/lib/yaxt/lib) |
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
Oops, something went wrong.