Skip to content

Commit

Permalink
Split CI_sequential
Browse files Browse the repository at this point in the history
  • Loading branch information
loganoz committed Sep 20, 2023
1 parent 6fbeafe commit bd9c57d
Show file tree
Hide file tree
Showing 5 changed files with 1,080 additions and 151 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# This is a basic workflow to help you get started with Actions

name: CI SEQUENTIAL INTEL DEBUG MULTIPHASE
name: CI SEQ COMP+EULER

########################################################################
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
#push:
# branches: [ master ]
#pull_request:
# branches: [ master ]
push:
branches: [ master ]
pull_request:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -27,12 +27,32 @@ jobs:
strategy:
fail-fast: false
matrix:
compiler: ['ifort']
mode: ['DEBUG']
compiler: ['gfortran', 'ifort']
mode: ['RELEASE', 'DEBUG']
comm: ['SEQUENTIAL']
enable_threads: ['YES']
mkl: ['YES']

mkl: ['YES','NO']
exclude:
- compiler: gfortran
mode: RELEASE
comm: SEQUENTIAL
enable_threads: YES
mkl: 'YES'
- compiler: gfortran
mode: DEBUG
comm: SEQUENTIAL
enable_threads: YES
mkl: 'YES'
- compiler: ifort
mode: RELEASE
comm: SEQUENTIAL
enable_threads: YES
mkl: 'NO'
- compiler: ifort
mode: DEBUG
comm: SEQUENTIAL
enable_threads: YES
mkl: 'NO'
# Steps represent a sequence of tasks that will be executed as part of the job

steps:
Expand Down Expand Up @@ -94,206 +114,252 @@ jobs:
make allclean MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_MKL=${{matrix.mkl}}
make MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_MKL=${{matrix.mkl}}
########################################################################
####### MULTIPHASE ########
####### COMPONENTS ########
########################################################################
#
# 1) Convergence
# ----------------------------
# 1) FACE PATCHES TEST
# --------------------

- name: Build FacePatches
working-directory: ./Solver/test/Components/FacePatches
run: |
source /opt/intel/oneapi/setvars.sh || true
make MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_MKL=${{matrix.mkl}}
if: '!cancelled()'

- name: Run FacePatches
working-directory: ./Solver/test/Components/FacePatches
run: |
source /opt/intel/oneapi/setvars.sh || true
./bin/FacePatches
if: '!cancelled()'

#
# 2) GRADIENTS TEST
# -----------------
# This test has been inactive in Alderaan for quite a long time
#
# 3) HEXMAPPINGS TEST
# -------------------

- name: Build MultiphaseConvergence
working-directory: ./Solver/test/Multiphase/Convergence/SETUP
- name: Build HexMappings
working-directory: ./Solver/test/Components/HexMappings
run: |
source /opt/intel/oneapi/setvars.sh || true
make MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_MKL=${{matrix.mkl}}
if: '!cancelled()'

- name: Run MultiphaseConvergence
working-directory: ./Solver/test/Multiphase/Convergence
- name: Run HexMappings
working-directory: ./Solver/test/Components/HexMappings
run: |
source /opt/intel/oneapi/setvars.sh || true
./horses3d.mu Convergence.control
./bin/HexMappings
if: '!cancelled()'

#
# 2) RisingBubble
# ----------------------------
# 4) HEXMESH TEST
# ---------------

- name: Build MultiphaseRisingBubble
working-directory: ./Solver/test/Multiphase/RisingBubble/SETUP
- name: Build HexMesh
working-directory: ./Solver/test/Components/HexMesh
run: |
source /opt/intel/oneapi/setvars.sh || true
make MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_MKL=${{matrix.mkl}}
if: '!cancelled()'

- name: Run MultiphaseRisingBubble
working-directory: ./Solver/test/Multiphase/RisingBubble
- name: Run HexMesh
working-directory: ./Solver/test/Components/HexMesh
run: |
source /opt/intel/oneapi/setvars.sh || true
./horses3d.mu RisingBubble.control
./bin/HexMesh
if: '!cancelled()'

#
# 3) Pipe
# ----------------------------
# 5) MESHCONSISTENCY TEST
# -----------------------

- name: Build MultiphasePipe
working-directory: ./Solver/test/Multiphase/Pipe/SETUP
- name: Build MeshConsistency
working-directory: ./Solver/test/Components/MeshConsistency
run: |
source /opt/intel/oneapi/setvars.sh || true
make MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_MKL=${{matrix.mkl}}
if: '!cancelled()'

- name: Run MultiphasePipe
working-directory: ./Solver/test/Multiphase/Pipe
- name: Run MeshConsistency
working-directory: ./Solver/test/Components/MeshConsistency
run: |
source /opt/intel/oneapi/setvars.sh || true
./horses3d.mu AnnularFlow.control
./bin/MeshConsistency
if: '!cancelled()'

#
# 4) Entropy conserving test
# ----------------------------
# 6) NODALSTORAGE TEST
# --------------------

- name: Build MultiphaseEntropyConservingTest
working-directory: ./Solver/test/Multiphase/EntropyConservingTest/SETUP
- name: Build NodalStorage
working-directory: ./Solver/test/Components/NodalStorage
run: |
source /opt/intel/oneapi/setvars.sh || true
make MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_MKL=${{matrix.mkl}}
if: '!cancelled()'

- name: Run MultiphaseEntropyConservingTest
working-directory: ./Solver/test/Multiphase/EntropyConservingTest
- name: Run NodalStorage
working-directory: ./Solver/test/Components/NodalStorage
run: |
source /opt/intel/oneapi/setvars.sh || true
./horses3d.mu EntropyConservingTest.control
./bin/NodalStorage
if: '!cancelled()'

########################################################################
####### INCOMPRESSIBLE ########
####### EULER ########
########################################################################
#
# 1) Convergence
# ----------------------------
# 1) DIFFUSER
# -----------

- name: Build iNS-Convergence
working-directory: ./Solver/test/IncompressibleNS/Convergence/SETUP
- name: Build Diffuser
working-directory: ./Solver/test/Euler/Diffuser/SETUP
run: |
source /opt/intel/oneapi/setvars.sh || true
make MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_MKL=${{matrix.mkl}}
if: '!cancelled()'

- name: Run iNS-Convergence
working-directory: ./Solver/test/IncompressibleNS/Convergence
- name: Run Diffuser
working-directory: ./Solver/test/Euler/Diffuser
run: |
source /opt/intel/oneapi/setvars.sh || true
./horses3d.ins Convergence4P5.control
./horses3d.ns DiffuserFlow.control
if: '!cancelled()'

#
# 2) Kovasznay
# ----------------------------
# 2) UNIFORM FLOW
# ---------------

- name: Build iNS-Kovasznay
working-directory: ./Solver/test/IncompressibleNS/Kovasznay/SETUP
- name: Build UniformFlow
working-directory: ./Solver/test/Euler/UniformFlow/SETUP
run: |
source /opt/intel/oneapi/setvars.sh || true
make MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_MKL=${{matrix.mkl}}
if: '!cancelled()'

- name: Run iNS-Kovasznay
working-directory: ./Solver/test/IncompressibleNS/Kovasznay
- name: Run UniformFlow
working-directory: ./Solver/test/Euler/UniformFlow
run: |
source /opt/intel/oneapi/setvars.sh || true
./horses3d.ins Kovasznay.control
./horses3d.ns UniformFlow.control
if: '!cancelled()'

#
# 3) Lid driven cavity
# ----------------------------
# 3) BOX AROUND CIRCLE
# --------------------

- name: Build iNS-LidDrivenCavity
working-directory: ./Solver/test/IncompressibleNS/LidDrivenCavity/SETUP
- name: Build BoxAroundCircle
working-directory: ./Solver/test/Euler/BoxAroundCircle/SETUP
run: |
source /opt/intel/oneapi/setvars.sh || true
make MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_MKL=${{matrix.mkl}}
if: '!cancelled()'

- name: Run iNS-LidDrivenCavity
working-directory: ./Solver/test/IncompressibleNS/LidDrivenCavity
- name: Run BoxAroundCircle
working-directory: ./Solver/test/Euler/BoxAroundCircle
run: |
source /opt/intel/oneapi/setvars.sh || true
./horses3d.ins LDCRe7500.control
./horses3d.ns BoxAroundCircle.control
if: '!cancelled()'

#
# 4) Taylor Green Vortex
# ----------------------------
# 4) BOX AROUND CIRCLE PIROZZOLI
# ------------------------------

- name: Build iNS-TaylorGreenVortex
working-directory: ./Solver/test/IncompressibleNS/TaylorGreen/SETUP
- name: Build BoxAroundCirclePirozzoli
working-directory: ./Solver/test/Euler/BoxAroundCirclePirozzoli/SETUP
run: |
source /opt/intel/oneapi/setvars.sh || true
make MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_MKL=${{matrix.mkl}}
if: '!cancelled()'

- name: Run iNS-TaylorGreenVortex
working-directory: ./Solver/test/IncompressibleNS/TaylorGreen
- name: Run BoxAroundCirclePirozzoli
working-directory: ./Solver/test/Euler/BoxAroundCirclePirozzoli
run: |
source /opt/intel/oneapi/setvars.sh || true
./horses3d.ins TGV_Central.control
./horses3d.ns BoxAroundCirclePirozzoli.control
if: '!cancelled()'

#
# 5) Rayleigh-Taylor instability
# -------------------------------
# 5) Inviscid TGV with KEPEC
# --------------------------

- name: Build iNS-RayleighTaylor
working-directory: ./Solver/test/IncompressibleNS/RayleighTaylor/SETUP
- name: Build TaylorGreenKEPEC
working-directory: ./Solver/test/Euler/TaylorGreenKEPEC/SETUP
run: |
source /opt/intel/oneapi/setvars.sh || true
make MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_MKL=${{matrix.mkl}}
if: '!cancelled()'

- name: Run iNS-RayleighTaylor
working-directory: ./Solver/test/IncompressibleNS/RayleighTaylor
- name: Run TaylorGreenKEPEC
working-directory: ./Solver/test/Euler/TaylorGreenKEPEC
run: |
source /opt/intel/oneapi/setvars.sh || true
./horses3d.ins RTI.control
./horses3d.ns TaylorGreenKEPEC.control
if: '!cancelled()'

#
# 6) Vortex transport 2D with KEPEC
# ---------------------------------


########################################################################
####### ADDONS ########
########################################################################
# Outdated test case.
#
# 1) Mapping Result - horsesConverter
# --------------------------------------------
- name: Run horsesConverter_MappingResult
working-directory: ./Solver/test/AddOns/horsesConverter/MappingResult
# - name: Build VortexTransport2DKEPEC
# working-directory: ./Solver/test/Euler/VortexTransport2D/SETUP
# run: |
# source /opt/intel/oneapi/setvars.sh || true
# make MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_MKL=${{matrix.mkl}}
#
# - name: Run VortexTransport2DKEPEC
# working-directory: ./Solver/test/Euler/VortexTransport2D
# run: |
# source /opt/intel/oneapi/setvars.sh || true
# ./horses3d.ns VortexTransport2D.control

#
# 7) Jacobian-Free Newton-Krylov
# ------------------------------

# Deactivated because a mismatch in the accuracy.
# Double Precision equality failed:
# Final maximum residual
# Expected [1.6257217794191102E-011], Got [3.4106051316484809E-013]

- name: Build JFNK Uniform Flow
working-directory: ./Solver/test/Euler/JFNK/SETUP
run: |
source /opt/intel/oneapi/setvars.sh || true
make MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_MKL=${{matrix.mkl}}
if: '!cancelled()'

- name: Run JFNK Uniform Flow
working-directory: ./Solver/test/Euler/JFNK
run: |
source /opt/intel/oneapi/setvars.sh || true
./horsesConverter
./horses3d.ns UniformFlowJFNK.control
if: '!cancelled()'

#
# 2) Horses Mesh to OpenFOAM - horsesConverter
# --------------------------------------------
- name: Run horsesConverter_HorsesMesh2OF
working-directory: ./Solver/test/AddOns/horsesConverter/HorsesMesh2OF
# 8) BOX AROUND CIRCLE WITH ADAPTATION
# ------------------------------------

- name: Build BoxAroundCircle_pAdapted
working-directory: ./Solver/test/Euler/BoxAroundCircle_pAdapted/SETUP
run: |
source /opt/intel/oneapi/setvars.sh || true
./horsesConverter
make MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_MKL=${{matrix.mkl}}
if: '!cancelled()'

#
# 3) OpenFOAM to Horses - horsesConverter
# --------------------------------------------
- name: Run horsesConverter_OF2Horses
working-directory: ./Solver/test/AddOns/horsesConverter/OF2Horses
- name: Run BoxAroundCircle_pAdapted
working-directory: ./Solver/test/Euler/BoxAroundCircle_pAdapted
run: |
source /opt/intel/oneapi/setvars.sh || true
OMP_NUM_THREADS=4 ./horsesConverter
./horses3d.ns BoxAroundCircle_pAdapted.control
if: '!cancelled()'

Loading

0 comments on commit bd9c57d

Please sign in to comment.