Skip to content

Commit 6cc0a86

Browse files
committed
checker
1 parent d55a3f3 commit 6cc0a86

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/simulation/m_checker.fpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ contains
161161
& "hypo_hll_interface_rhs requires HLL Riemann solver (riemann_solver = 1)")
162162
@:PROHIBIT(alt_soundspeed .and. riemann_solver == 4 .and. .not. hypoelasticity, &
163163
& "alt_soundspeed with HLLD requires hypoelasticity = T")
164+
@:PROHIBIT(hypoelasticity .and. alt_soundspeed .and. num_fluids /= 2, &
165+
& "hypoelastic alt_soundspeed requires exactly 2 fluid components")
164166
@:PROHIBIT(hypoelasticity .and. igr, "Hypoelasticity is not compatible with IGR")
165167

166168
end subroutine s_check_inputs_hypo_branch

toolchain/mfc/case_validator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,9 +592,11 @@ def check_hypoelasticity(self):
592592
p = self.get("p", 0)
593593
cyl_coord = self.get("cyl_coord", "F") == "T"
594594
num_fluids = self.get("num_fluids")
595+
alt_soundspeed = self.get("alt_soundspeed", "F") == "T"
595596
self.prohibit(cyl_coord and p > 0, "3D cylindrical hypoelasticity is not supported")
596597
self.prohibit(riemann_solver == 4 and n == 0, "HLLD hypoelasticity requires at least 2D (n > 0)")
597598
self.prohibit(riemann_solver == 4 and num_fluids is not None and num_fluids != 2, "HLLD hypoelasticity requires exactly 2 fluid components")
599+
self.prohibit(alt_soundspeed and num_fluids is not None and num_fluids != 2, "hypoelastic alt_soundspeed requires exactly 2 fluid components")
598600
self.prohibit(riemann_solver == 4 and cont_damage, "HLLD hypoelasticity does not support continuum damage (the dual-pass does not damage-scale the shear modulus)")
599601
self.prohibit(riemann_solver == 4 and bubbles_euler, "HLLD hypoelasticity does not support Euler-Euler bubbles (the dual-pass omits the bubble source and divergence term)")
600602
self.prohibit(riemann_solver == 4 and chemistry, "HLLD hypoelasticity does not support chemistry")

0 commit comments

Comments
 (0)