Skip to content

Commit 8010057

Browse files
authored
Cases set only the parameters their equation of state reads (#1808)
1 parent 4ea70c9 commit 8010057

124 files changed

Lines changed: 20 additions & 189 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.

.github/scripts/check_coverage_map_health.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
"""Fail loudly if the committed coverage map is stale or under-covers. Used by coverage-health.yml."""
22
import datetime
3-
import subprocess
43
import sys
54
from pathlib import Path
65

76
sys.path.insert(0, str(Path(__file__).resolve().parents[2] / "toolchain"))
8-
from mfc.test.coverage import COVERAGE_MAP_PATH, load_map, map_health # noqa: E402
7+
from mfc.test.coverage import COVERAGE_MAP_PATH, _git, load_map, map_health # noqa: E402
98
from mfc.test.cases import list_cases # noqa: E402 (returns the current test list)
109

1110
MAX_AGE_DAYS = 10
@@ -40,7 +39,7 @@ def verified_sha(cwd=None):
4039
caller must read that as undeterminable and fall back to the wall-clock age rule, not
4140
as a failure -- an absent ref is not evidence of a broken refresh.
4241
"""
43-
rev = subprocess.run(["git", "rev-parse", "--verify", "--quiet", f"{VERIFIED_REF}^{{commit}}"], capture_output=True, text=True, check=False, cwd=cwd)
42+
rev = _git(["rev-parse", "--verify", "--quiet", f"{VERIFIED_REF}^{{commit}}"], cwd)
4443
return rev.stdout.strip() or None
4544

4645

@@ -53,10 +52,10 @@ def verified_after_last_change(git_sha, cwd=None):
5352
"""
5453
if not git_sha:
5554
return None
56-
last = subprocess.run(["git", "log", "-1", "--format=%H", "--", *COVERAGE_RELEVANT_PATHS], capture_output=True, text=True, check=False, cwd=cwd)
55+
last = _git(["log", "-1", "--format=%H", "--", *COVERAGE_RELEVANT_PATHS], cwd)
5756
if last.returncode != 0 or not last.stdout.strip():
5857
return None # shallow clone or no such commit -> fall back to the age rule
59-
ancestor = subprocess.run(["git", "merge-base", "--is-ancestor", last.stdout.strip(), git_sha], capture_output=True, check=False, cwd=cwd)
58+
ancestor = _git(["merge-base", "--is-ancestor", last.stdout.strip(), git_sha], cwd)
6059
return {0: True, 1: False}.get(ancestor.returncode) # anything else -> None (unknown sha, shallow history)
6160

6261

examples/1D_advection_convergence/case.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,8 @@
9595
"patch_icpp(1)%alpha(2)": "0.5 - 0.2 * sin(2.0 * pi * x / lx)",
9696
"fluid_pp(1)%gamma": 1.0 / (gamma - 1.0),
9797
"fluid_pp(1)%eos": "ideal_gas",
98-
"fluid_pp(1)%pi_inf": 0.0,
9998
"fluid_pp(2)%gamma": 1.0 / (gamma - 1.0),
10099
"fluid_pp(2)%eos": "ideal_gas",
101-
"fluid_pp(2)%pi_inf": 0.0,
102100
**scheme_params,
103101
}
104102
)

examples/1D_brio_wu/case.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
# Fluids Physical Parameters
7575
"fluid_pp(1)%gamma": 1.0e00 / (2.0e00 - 1.0e00),
7676
"fluid_pp(1)%eos": "ideal_gas",
77-
"fluid_pp(1)%pi_inf": 0.0,
7877
}
7978
)
8079
)

examples/1D_brio_wu_hlld/case.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575
# Fluids Physical Parameters
7676
"fluid_pp(1)%gamma": 1.0e00 / (2.0e00 - 1.0e00),
7777
"fluid_pp(1)%eos": "ideal_gas",
78-
"fluid_pp(1)%pi_inf": 0.0,
7978
}
8079
)
8180
)

examples/1D_brio_wu_rmhd/case.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
# Fluids Physical Parameters
7777
"fluid_pp(1)%gamma": 1.0e00 / (2.0e00 - 1.0e00),
7878
"fluid_pp(1)%eos": "ideal_gas",
79-
"fluid_pp(1)%pi_inf": 0.0,
8079
}
8180
)
8281
)

examples/1D_convergence/case.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,8 @@
7474
# Fluids Physical Parameters
7575
"fluid_pp(1)%gamma": 1.0e00 / (1.4 - 1.0e00),
7676
"fluid_pp(1)%eos": "ideal_gas",
77-
"fluid_pp(1)%pi_inf": 0.0,
7877
"fluid_pp(2)%gamma": 1.0e00 / (1.4 - 1.0e00),
7978
"fluid_pp(2)%eos": "ideal_gas",
80-
"fluid_pp(2)%pi_inf": 0.0,
8179
}
8280
)
8381
)

examples/1D_dai_woodward/case.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@
8383
# Fluids Physical Parameters
8484
"fluid_pp(1)%gamma": 1.0e00 / ((5.0 / 3.0) - 1.0e00),
8585
"fluid_pp(1)%eos": "ideal_gas",
86-
"fluid_pp(1)%pi_inf": 0.0,
8786
},
8887
)
8988
)

examples/1D_dai_woodward_hlld/case.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
# Fluids Physical Parameters
8585
"fluid_pp(1)%gamma": 1.0e00 / ((5.0 / 3.0) - 1.0e00),
8686
"fluid_pp(1)%eos": "ideal_gas",
87-
"fluid_pp(1)%pi_inf": 0.0,
8887
},
8988
)
9089
)

examples/1D_euler_convergence/case.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@
100100
"patch_icpp(1)%alpha(1)": 1.0,
101101
"fluid_pp(1)%gamma": 1.0 / (gamma - 1.0),
102102
"fluid_pp(1)%eos": "ideal_gas",
103-
"fluid_pp(1)%pi_inf": 0.0,
104103
**scheme_params,
105104
}
106105
)

examples/1D_hypo_2materials/case.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@
8383
"fluid_pp(1)%G": 1.0e09,
8484
"fluid_pp(2)%gamma": 1.0e00 / (1.4e00 - 1.0e00),
8585
"fluid_pp(2)%eos": "ideal_gas",
86-
"fluid_pp(2)%pi_inf": 0.0,
8786
"fluid_pp(2)%G": 0.0,
8887
}
8988
)

0 commit comments

Comments
 (0)