FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

V2.0 (#198) · idefix-code/idefix@19ed7be · GitHub

V2.0 (#198) · idefix-code/idefix@19ed7be · GitHub
Skip to content

Navigation Menu

Repository navigation

Commit 19ed7be

Browse files
authored
V2.0 (#198)
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>
1 parent 5c6348f commit 19ed7be

460 files changed

Lines changed: 31869 additions & 10310 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitattributes‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎.github/workflows/idefix-ci.yml‎

Lines changed: 193 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- master
7+
- v2.0
78
pull_request:
89
paths-ignore:
910
- '.github/ISSUE_TEMPLATE/*'
@@ -16,132 +17,271 @@ concurrency:
1617
cancel-in-progress: true
1718

1819
env:
19-
TEST_OPTIONS: -DKokkos_ENABLE_CUDA=ON
20+
TESTME_OPTIONS: -cuda -Werror
21+
PYTHONPATH: ${{ github.workspace }}
22+
IDEFIX_DIR: ${{ github.workspace }}
2023

2124
jobs:
2225
Linter:
2326
# Don't do this in forks
24-
if: github.repository == 'idefix-code/idefix'
27+
if: ${{ github.repository == 'idefix-code/idefix' || github.repository == 'glesur/idefix' }}
2528
runs-on: ubuntu-latest
2629
steps:
2730
- uses: actions/checkout@v3
28-
with:
29-
lfs: false
3031
- uses: actions/setup-python@v4
3132
with:
3233
python-version: 3.x
3334
- uses: pre-commit/action@v3.0.0
3435
- uses: pre-commit-ci/lite-action@v1.0.0
3536
if: always()
3637

37-
Hydrodynamics:
38+
ShocksHydro:
39+
needs: Linter
40+
runs-on: self-hosted
41+
steps:
42+
- name: Check out repo
43+
uses: actions/checkout@v3
44+
with:
45+
submodules: recursive
46+
- name: Sod test
47+
run: |
48+
cd $IDEFIX_DIR/test/HD/sod
49+
./testme.py -all $TESTME_OPTIONS
50+
- name: Isothermal Sod test
51+
run: |
52+
cd $IDEFIX_DIR/test/HD/sod-iso
53+
./testme.py -all $TESTME_OPTIONS
54+
- name: Mach reflection test
55+
run: |
56+
cd $IDEFIX_DIR/test/HD//MachReflection
57+
./testme.py -all $TESTME_OPTIONS
58+
59+
ParabolicHydro:
3860
needs: Linter
3961
runs-on: self-hosted
4062
steps:
4163
- name: Check out repo
4264
uses: actions/checkout@v3
4365
with:
44-
lfs: true
4566
submodules: recursive
46-
# Manually do a git LFS https://github.com/actions/checkout/issues/270
47-
- run: git lfs pull
48-
- name: Run Hydro test
49-
run: cd test && ./checks_hydro.sh $TEST_OPTIONS
67+
- name: Viscous flow past cylinder
68+
run: |
69+
cd $IDEFIX_DIR/test/HD/ViscousFlowPastCylinder
70+
./testme.py -all $TESTME_OPTIONS
71+
- name: Viscous disk
72+
run: |
73+
cd $IDEFIX_DIR/test/HD/ViscousDisk
74+
./testme.py -all $TESTME_OPTIONS
75+
- name: Thermal diffusion
76+
run: |
77+
cd $IDEFIX_DIR/test/HD/thermalDiffusion
78+
./testme.py -all $TESTME_OPTIONS
5079
51-
Magneto-Hydrodynamics:
80+
ShocksMHD:
5281
needs: Linter
5382
runs-on: self-hosted
5483
steps:
5584
- name: Check out repo
5685
uses: actions/checkout@v3
5786
with:
58-
lfs: true
5987
submodules: recursive
60-
# Manually do a git LFS https://github.com/actions/checkout/issues/270
61-
- run: git lfs pull
62-
- name: Run MHD test
63-
run: cd test && ./checks_mhd.sh $TEST_OPTIONS
88+
- name: MHD Sod test
89+
run: |
90+
cd $IDEFIX_DIR/test/MHD/sod
91+
./testme.py -all $TESTME_OPTIONS
92+
- name: MHD Isothermal Sod test
93+
run: |
94+
cd $IDEFIX_DIR/test/MHD/sod-iso
95+
./testme.py -all $TESTME_OPTIONS
96+
- name: Orszag Tang
97+
run: |
98+
cd $IDEFIX_DIR/test/MHD/OrszagTang
99+
./testme.py -all $TESTME_OPTIONS
100+
- name: Orszag Tang 3D+restart tests
101+
run: |
102+
cd $IDEFIX_DIR/test/MHD/OrszagTang3D
103+
./testme.py -all $TESTME_OPTIONS
104+
64105
65-
MPI:
106+
ParabolicMHD:
66107
needs: Linter
67108
runs-on: self-hosted
68109
steps:
69110
- name: Check out repo
70111
uses: actions/checkout@v3
71112
with:
72-
lfs: true
73113
submodules: recursive
74-
# Manually do a git LFS https://github.com/actions/checkout/issues/270
75-
- run: git lfs pull
76-
- name: Run MPI test
77-
run: cd test && ./checks_mpi.sh $TEST_OPTIONS
114+
- name: Ambipolar C Shock
115+
run: |
116+
cd $IDEFIX_DIR/test/MHD/AmbipolarCshock
117+
./testme.py -all $TESTME_OPTIONS
118+
- name: Ambipolar C Shock 3D
119+
run: |
120+
cd $IDEFIX_DIR/test/MHD/AmbipolarCshock3D
121+
./testme.py -all $TESTME_OPTIONS
122+
- name: Resistive Alfvén wave
123+
run: |
124+
cd $IDEFIX_DIR/test/MHD/ResistiveAlfvenWave
125+
./testme.py -all $TESTME_OPTIONS
126+
- name: Hall whistler waves
127+
run: |
128+
cd $IDEFIX_DIR/test/MHD/HallWhistler
129+
./testme.py -all $TESTME_OPTIONS
130+
131+
Fargo:
132+
needs: [Linter, ShocksHydro, ParabolicHydro, ShocksMHD, ParabolicMHD]
133+
runs-on: self-hosted
134+
steps:
135+
- name: Check out repo
136+
uses: actions/checkout@v3
137+
with:
138+
submodules: recursive
139+
- name: Fargo + planet
140+
run: |
141+
cd $IDEFIX_DIR/test/HD/FargoPlanet
142+
./testme.py -all $TESTME_OPTIONS
143+
- name: Fargo MHD spherical
144+
run: |
145+
cd $IDEFIX_DIR/test/MHD/FargoMHDSpherical
146+
./testme.py -all $TESTME_OPTIONS
147+
148+
ShearingBox:
149+
needs: [Linter, ShocksHydro, ParabolicHydro, ShocksMHD, ParabolicMHD]
150+
runs-on: self-hosted
151+
steps:
152+
- name: Check out repo
153+
uses: actions/checkout@v3
154+
with:
155+
submodules: recursive
156+
- name: Hydro shearing box
157+
run: |
158+
cd $IDEFIX_DIR/test/HD/ShearingBox
159+
./testme.py -all $TESTME_OPTIONS
160+
- name: MHD shearing box
161+
run: |
162+
cd $IDEFIX_DIR/test/MHD/ShearingBox
163+
./testme.py -all $TESTME_OPTIONS
164+
165+
SelfGravity:
166+
needs: [Linter, ShocksHydro, ParabolicHydro, ShocksMHD, ParabolicMHD]
167+
runs-on: self-hosted
168+
steps:
169+
- name: Check out repo
170+
uses: actions/checkout@v3
171+
with:
172+
submodules: recursive
173+
- name: Jeans Instability
174+
run: |
175+
cd $IDEFIX_DIR/test/SelfGravity/JeansInstability
176+
./testme.py -all $TESTME_OPTIONS
177+
- name: Random sphere spherical
178+
run: |
179+
cd $IDEFIX_DIR/test/SelfGravity/RandomSphere
180+
./testme.py -all $TESTME_OPTIONS
181+
- name: Random sphere cartesian
182+
run: |
183+
cd $IDEFIX_DIR/test/SelfGravity/RandomSphereCartesian
184+
./testme.py -all $TESTME_OPTIONS
185+
- name: Uniform spherical collapse
186+
run: |
187+
cd $IDEFIX_DIR/test/SelfGravity/UniformCollapse
188+
./testme.py -all $TESTME_OPTIONS
78189
79-
VectorPotential:
80-
needs: [Linter, Hydrodynamics, Magneto-Hydrodynamics, MPI]
190+
Planet:
191+
needs: [Linter, ShocksHydro, ParabolicHydro, ShocksMHD, ParabolicMHD]
81192
runs-on: self-hosted
82193
steps:
83194
- name: Check out repo
84195
uses: actions/checkout@v3
85196
with:
86-
lfs: true
87197
submodules: recursive
88-
# Manually do a git LFS https://github.com/actions/checkout/issues/270
89-
- run: git lfs pull
90-
- name: Run Vector Potential test
91-
run: cd test && ./checks_vector_potential.sh $TEST_OPTIONS
198+
- name: 3 body
199+
run: |
200+
cd $IDEFIX_DIR/test/Planet/Planet3Body
201+
./testme.py -all $TESTME_OPTIONS
202+
- name: migration
203+
run: |
204+
cd $IDEFIX_DIR/test/Planet/PlanetMigration2D
205+
./testme.py -all $TESTME_OPTIONS
206+
- name: planet-planet
207+
run: |
208+
cd $IDEFIX_DIR/test/Planet/PlanetPlanetRK42D
209+
./testme.py -all $TESTME_OPTIONS
210+
- name: spiral wake
211+
run: |
212+
cd $IDEFIX_DIR/test/Planet/PlanetSpiral2D
213+
./testme.py -all $TESTME_OPTIONS
214+
- name: torques
215+
run: |
216+
cd $IDEFIX_DIR/test/Planet/PlanetTorque3D
217+
./testme.py -all $TESTME_OPTIONS
218+
- name: RK5
219+
run: |
220+
cd $IDEFIX_DIR/test/Planet/PlanetsIsActiveRK52D
221+
./testme.py -all $TESTME_OPTIONS
92222
93-
HighOrder:
94-
needs: [Linter, Hydrodynamics, Magneto-Hydrodynamics, MPI]
223+
Dust:
224+
needs: [Linter, ShocksHydro, ParabolicHydro, ShocksMHD, ParabolicMHD]
95225
runs-on: self-hosted
96226
steps:
97227
- name: Check out repo
98228
uses: actions/checkout@v3
99229
with:
100-
lfs: true
101230
submodules: recursive
102-
# Manually do a git LFS https://github.com/actions/checkout/issues/270
103-
- run: git lfs pull
104-
- name: Run high order test
105-
run: cd test && ./checks_highorder.sh $TEST_OPTIONS
231+
- name: Energy conservation
232+
run: |
233+
cd $IDEFIX_DIR/test/Dust/DustEnergy
234+
./testme.py -all $TESTME_OPTIONS
235+
- name: Dusty wave
236+
run: |
237+
cd $IDEFIX_DIR/test/Dust/DustyWave
238+
./testme.py -all $TESTME_OPTIONS
106239
107-
SinglePrecision:
108-
needs: [Linter, Hydrodynamics, Magneto-Hydrodynamics, MPI]
240+
Braginskii:
241+
needs: [Linter, ShocksHydro, ParabolicHydro, ShocksMHD, ParabolicMHD]
109242
runs-on: self-hosted
110243
steps:
111244
- name: Check out repo
112245
uses: actions/checkout@v3
113246
with:
114-
lfs: true
115247
submodules: recursive
116-
# Manually do a git LFS https://github.com/actions/checkout/issues/270
117-
- run: git lfs pull
118-
- name: Run single precision test
119-
run: cd test && ./checks_singleprecision.sh $TEST_OPTIONS
248+
- name: MTI
249+
run: |
250+
cd $IDEFIX_DIR/test/MHD/MTI
251+
./testme.py -all $TESTME_OPTIONS
252+
- name: Spherical anisotropic diffusion
253+
run: |
254+
cd $IDEFIX_DIR/test/MHD/sphBragTDiffusion
255+
./testme.py -all $TESTME_OPTIONS
256+
- name: Spherical anisotropic viscosity
257+
run: |
258+
cd $IDEFIX_DIR/test/MHD/sphBragViscosity
259+
./testme.py -all $TESTME_OPTIONS
120260
121261
Examples:
122-
needs: [VectorPotential, HighOrder,SinglePrecision]
262+
needs: [Fargo, Dust, Planet, ShearingBox, SelfGravity]
123263
runs-on: self-hosted
124264
steps:
125265
- name: Check out repo
126266
uses: actions/checkout@v3
127267
with:
128-
lfs: true
129268
submodules: recursive
130-
# Manually do a git LFS https://github.com/actions/checkout/issues/270
131-
- run: git lfs pull
132269
- name: Run examples test
133270
run: cd test && ./checks_examples.sh $TEST_OPTIONS
134271

135272
Utils:
136-
needs: [VectorPotential, HighOrder,SinglePrecision]
273+
needs: [Fargo, Dust, Planet, ShearingBox, SelfGravity]
137274
runs-on: self-hosted
138275
steps:
139276
- name: Check out repo
140277
uses: actions/checkout@v3
141278
with:
142-
lfs: true
143279
submodules: recursive
144-
# Manually do a git LFS https://github.com/actions/checkout/issues/270
145-
- run: git lfs pull
146-
- name: Run utils test
147-
run: cd test && ./checks_utils.sh $TEST_OPTIONS
280+
- name: Lookup table
281+
run: |
282+
cd $IDEFIX_DIR/test/utils/lookupTable
283+
./testme.py -all $TESTME_OPTIONS
284+
- name: Dump Image
285+
run: |
286+
cd $IDEFIX_DIR/test/utils/dumpImage
287+
./testme.py -all $TESTME_OPTIONS

‎.gitignore‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ doc/source/xml/*
1212

1313
# generated files
1414
*.log
15-
src/gitversion.hpp
15+
src/version.hpp
1616
**/libkokkos.a
1717
**/KokkosCore_config.h
1818
build
@@ -34,6 +34,7 @@ test/**/Makefile
3434
test/**/KokkosCore*
3535
test/**/*.csv
3636
test/**/*.pyc
37+
test/**/*.dat
3738

3839
# machine specific cache and hidden files
3940
.*

0 commit comments

Comments
 (0)

Footer

© 2026 GitHub, Inc.

Back | FazBrowse Home | New Git URL