Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/fesom2_intel_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: FESOM2 Intel Compiler Tests

# Controls when the action will run. Triggers the workflow on push or pull request.
on:
workflow_dispatch: {}
pull_request:
types:
- opened
- synchronize
- reopened
branches:
- main

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
intel_test:
# Containers must run in Linux based operating systems
runs-on: ubuntu-latest
# Intel compiler container
container: ghcr.io/suvarchal/fesom2-ci-intel

steps:
# Checkout repository with latest git action
- uses: actions/checkout@v5
with:
fetch-depth: 1

- name: Git safe directory
run: |
git config --global --add safe.directory ${PWD}

- name: Verify Intel compiler
run: |
echo "Checking Intel compiler use..."
echo "$CC"
echo "$FC"

- name: Configure and build with Intel compiler
run: |
echo "Configuring FESOM2 with Intel compiler..."
./configure.sh ubuntu+intel -DBUILD_TESTING=ON -DBUILD_NETCDF=ON

- name: Run integration tests
run: |
echo "Running integration tests with Intel compiler..."
cd build
ctest -R "integration_*" --output-on-failure --verbose
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ option(BUILD_TESTING "Build tests" OFF)
option(BUILD_MESHPARTITIONER "Build mesh partitioning tools (fesom_meshpart executable)" OFF)
option(BUILD_MESHDIAG "Build mesh diagnostics utility (fesom_meshdiag executable)" OFF)

# NetCDF build option
option(BUILD_NETCDF "Download and build NetCDF libraries when system libraries are incompatible" OFF)

# Include ExternalProject module for building NetCDF if requested
if(BUILD_NETCDF)
include(ExternalProject)
include(cmake/BuildNetCDF.cmake)
endif()

#add_subdirectory(oasis3-mct/lib/psmile)
add_subdirectory(src)

Expand Down
Loading
Loading