Skip to content

Commit

Permalink
V2.0 (#198)
Browse files Browse the repository at this point in the history
Main new modules introduced by v2.0

- Self-gravity (!186)
- Multi-dust species as pressureless fluids (!336)
- Passive tracers (!341)
- Planet module (planet migration, planet-planet integration) (!278)
- Custom equation of states (#185)

See Changelog.md for details

---------

Co-authored-by: Geoffroy Lesur <>
Co-authored-by: Clément Robert <cr52@protonmail.com>
Co-authored-by: Marc Van den Bossche <marc.vanden-bossche@univ-grenoble-alpes.fr>
Co-authored-by: Clément Robert <cmt.robert@univ-grenoble-alpes.fr>
Co-authored-by: Volodia99 <gaylor.wafflard@univ-grenoble-alpes.fr>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Alankar Dutta <dutta.alankar@gmail.com>
Co-authored-by: jeankpf <74673691+jeankpf@users.noreply.github.com>
  • Loading branch information
8 people authored Oct 23, 2023
1 parent 5c6348f commit 19ed7be
Show file tree
Hide file tree
Showing 460 changed files with 31,869 additions and 10,310 deletions.
11 changes: 0 additions & 11 deletions .gitattributes

This file was deleted.

246 changes: 193 additions & 53 deletions .github/workflows/idefix-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- v2.0
pull_request:
paths-ignore:
- '.github/ISSUE_TEMPLATE/*'
Expand All @@ -16,132 +17,271 @@ concurrency:
cancel-in-progress: true

env:
TEST_OPTIONS: -DKokkos_ENABLE_CUDA=ON
TESTME_OPTIONS: -cuda -Werror
PYTHONPATH: ${{ github.workspace }}
IDEFIX_DIR: ${{ github.workspace }}

jobs:
Linter:
# Don't do this in forks
if: github.repository == 'idefix-code/idefix'
if: ${{ github.repository == 'idefix-code/idefix' || github.repository == 'glesur/idefix' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
lfs: false
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: pre-commit/action@v3.0.0
- uses: pre-commit-ci/lite-action@v1.0.0
if: always()

Hydrodynamics:
ShocksHydro:
needs: Linter
runs-on: self-hosted
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Sod test
run: |
cd $IDEFIX_DIR/test/HD/sod
./testme.py -all $TESTME_OPTIONS
- name: Isothermal Sod test
run: |
cd $IDEFIX_DIR/test/HD/sod-iso
./testme.py -all $TESTME_OPTIONS
- name: Mach reflection test
run: |
cd $IDEFIX_DIR/test/HD//MachReflection
./testme.py -all $TESTME_OPTIONS
ParabolicHydro:
needs: Linter
runs-on: self-hosted
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
lfs: true
submodules: recursive
# Manually do a git LFS https://github.com/actions/checkout/issues/270
- run: git lfs pull
- name: Run Hydro test
run: cd test && ./checks_hydro.sh $TEST_OPTIONS
- name: Viscous flow past cylinder
run: |
cd $IDEFIX_DIR/test/HD/ViscousFlowPastCylinder
./testme.py -all $TESTME_OPTIONS
- name: Viscous disk
run: |
cd $IDEFIX_DIR/test/HD/ViscousDisk
./testme.py -all $TESTME_OPTIONS
- name: Thermal diffusion
run: |
cd $IDEFIX_DIR/test/HD/thermalDiffusion
./testme.py -all $TESTME_OPTIONS
Magneto-Hydrodynamics:
ShocksMHD:
needs: Linter
runs-on: self-hosted
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
lfs: true
submodules: recursive
# Manually do a git LFS https://github.com/actions/checkout/issues/270
- run: git lfs pull
- name: Run MHD test
run: cd test && ./checks_mhd.sh $TEST_OPTIONS
- name: MHD Sod test
run: |
cd $IDEFIX_DIR/test/MHD/sod
./testme.py -all $TESTME_OPTIONS
- name: MHD Isothermal Sod test
run: |
cd $IDEFIX_DIR/test/MHD/sod-iso
./testme.py -all $TESTME_OPTIONS
- name: Orszag Tang
run: |
cd $IDEFIX_DIR/test/MHD/OrszagTang
./testme.py -all $TESTME_OPTIONS
- name: Orszag Tang 3D+restart tests
run: |
cd $IDEFIX_DIR/test/MHD/OrszagTang3D
./testme.py -all $TESTME_OPTIONS
MPI:
ParabolicMHD:
needs: Linter
runs-on: self-hosted
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
lfs: true
submodules: recursive
# Manually do a git LFS https://github.com/actions/checkout/issues/270
- run: git lfs pull
- name: Run MPI test
run: cd test && ./checks_mpi.sh $TEST_OPTIONS
- name: Ambipolar C Shock
run: |
cd $IDEFIX_DIR/test/MHD/AmbipolarCshock
./testme.py -all $TESTME_OPTIONS
- name: Ambipolar C Shock 3D
run: |
cd $IDEFIX_DIR/test/MHD/AmbipolarCshock3D
./testme.py -all $TESTME_OPTIONS
- name: Resistive Alfvén wave
run: |
cd $IDEFIX_DIR/test/MHD/ResistiveAlfvenWave
./testme.py -all $TESTME_OPTIONS
- name: Hall whistler waves
run: |
cd $IDEFIX_DIR/test/MHD/HallWhistler
./testme.py -all $TESTME_OPTIONS
Fargo:
needs: [Linter, ShocksHydro, ParabolicHydro, ShocksMHD, ParabolicMHD]
runs-on: self-hosted
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Fargo + planet
run: |
cd $IDEFIX_DIR/test/HD/FargoPlanet
./testme.py -all $TESTME_OPTIONS
- name: Fargo MHD spherical
run: |
cd $IDEFIX_DIR/test/MHD/FargoMHDSpherical
./testme.py -all $TESTME_OPTIONS
ShearingBox:
needs: [Linter, ShocksHydro, ParabolicHydro, ShocksMHD, ParabolicMHD]
runs-on: self-hosted
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Hydro shearing box
run: |
cd $IDEFIX_DIR/test/HD/ShearingBox
./testme.py -all $TESTME_OPTIONS
- name: MHD shearing box
run: |
cd $IDEFIX_DIR/test/MHD/ShearingBox
./testme.py -all $TESTME_OPTIONS
SelfGravity:
needs: [Linter, ShocksHydro, ParabolicHydro, ShocksMHD, ParabolicMHD]
runs-on: self-hosted
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Jeans Instability
run: |
cd $IDEFIX_DIR/test/SelfGravity/JeansInstability
./testme.py -all $TESTME_OPTIONS
- name: Random sphere spherical
run: |
cd $IDEFIX_DIR/test/SelfGravity/RandomSphere
./testme.py -all $TESTME_OPTIONS
- name: Random sphere cartesian
run: |
cd $IDEFIX_DIR/test/SelfGravity/RandomSphereCartesian
./testme.py -all $TESTME_OPTIONS
- name: Uniform spherical collapse
run: |
cd $IDEFIX_DIR/test/SelfGravity/UniformCollapse
./testme.py -all $TESTME_OPTIONS
VectorPotential:
needs: [Linter, Hydrodynamics, Magneto-Hydrodynamics, MPI]
Planet:
needs: [Linter, ShocksHydro, ParabolicHydro, ShocksMHD, ParabolicMHD]
runs-on: self-hosted
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
lfs: true
submodules: recursive
# Manually do a git LFS https://github.com/actions/checkout/issues/270
- run: git lfs pull
- name: Run Vector Potential test
run: cd test && ./checks_vector_potential.sh $TEST_OPTIONS
- name: 3 body
run: |
cd $IDEFIX_DIR/test/Planet/Planet3Body
./testme.py -all $TESTME_OPTIONS
- name: migration
run: |
cd $IDEFIX_DIR/test/Planet/PlanetMigration2D
./testme.py -all $TESTME_OPTIONS
- name: planet-planet
run: |
cd $IDEFIX_DIR/test/Planet/PlanetPlanetRK42D
./testme.py -all $TESTME_OPTIONS
- name: spiral wake
run: |
cd $IDEFIX_DIR/test/Planet/PlanetSpiral2D
./testme.py -all $TESTME_OPTIONS
- name: torques
run: |
cd $IDEFIX_DIR/test/Planet/PlanetTorque3D
./testme.py -all $TESTME_OPTIONS
- name: RK5
run: |
cd $IDEFIX_DIR/test/Planet/PlanetsIsActiveRK52D
./testme.py -all $TESTME_OPTIONS
HighOrder:
needs: [Linter, Hydrodynamics, Magneto-Hydrodynamics, MPI]
Dust:
needs: [Linter, ShocksHydro, ParabolicHydro, ShocksMHD, ParabolicMHD]
runs-on: self-hosted
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
lfs: true
submodules: recursive
# Manually do a git LFS https://github.com/actions/checkout/issues/270
- run: git lfs pull
- name: Run high order test
run: cd test && ./checks_highorder.sh $TEST_OPTIONS
- name: Energy conservation
run: |
cd $IDEFIX_DIR/test/Dust/DustEnergy
./testme.py -all $TESTME_OPTIONS
- name: Dusty wave
run: |
cd $IDEFIX_DIR/test/Dust/DustyWave
./testme.py -all $TESTME_OPTIONS
SinglePrecision:
needs: [Linter, Hydrodynamics, Magneto-Hydrodynamics, MPI]
Braginskii:
needs: [Linter, ShocksHydro, ParabolicHydro, ShocksMHD, ParabolicMHD]
runs-on: self-hosted
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
lfs: true
submodules: recursive
# Manually do a git LFS https://github.com/actions/checkout/issues/270
- run: git lfs pull
- name: Run single precision test
run: cd test && ./checks_singleprecision.sh $TEST_OPTIONS
- name: MTI
run: |
cd $IDEFIX_DIR/test/MHD/MTI
./testme.py -all $TESTME_OPTIONS
- name: Spherical anisotropic diffusion
run: |
cd $IDEFIX_DIR/test/MHD/sphBragTDiffusion
./testme.py -all $TESTME_OPTIONS
- name: Spherical anisotropic viscosity
run: |
cd $IDEFIX_DIR/test/MHD/sphBragViscosity
./testme.py -all $TESTME_OPTIONS
Examples:
needs: [VectorPotential, HighOrder,SinglePrecision]
needs: [Fargo, Dust, Planet, ShearingBox, SelfGravity]
runs-on: self-hosted
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
lfs: true
submodules: recursive
# Manually do a git LFS https://github.com/actions/checkout/issues/270
- run: git lfs pull
- name: Run examples test
run: cd test && ./checks_examples.sh $TEST_OPTIONS

Utils:
needs: [VectorPotential, HighOrder,SinglePrecision]
needs: [Fargo, Dust, Planet, ShearingBox, SelfGravity]
runs-on: self-hosted
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
lfs: true
submodules: recursive
# Manually do a git LFS https://github.com/actions/checkout/issues/270
- run: git lfs pull
- name: Run utils test
run: cd test && ./checks_utils.sh $TEST_OPTIONS
- name: Lookup table
run: |
cd $IDEFIX_DIR/test/utils/lookupTable
./testme.py -all $TESTME_OPTIONS
- name: Dump Image
run: |
cd $IDEFIX_DIR/test/utils/dumpImage
./testme.py -all $TESTME_OPTIONS
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ doc/source/xml/*

# generated files
*.log
src/gitversion.hpp
src/version.hpp
**/libkokkos.a
**/KokkosCore_config.h
build
Expand All @@ -34,6 +34,7 @@ test/**/Makefile
test/**/KokkosCore*
test/**/*.csv
test/**/*.pyc
test/**/*.dat

# machine specific cache and hidden files
.*
Expand Down
Loading

0 comments on commit 19ed7be

Please sign in to comment.