Extend Gas restart and interfaces

This commit is contained in:
Codex
2026-07-03 11:04:59 +08:00
parent c834006eaf
commit 4203170bea
16 changed files with 620 additions and 31 deletions
+12
View File
@@ -72,8 +72,16 @@ def main() -> int:
"gas_volume",
"gas_mean_pressure",
"gas_max_pressure",
"gas_mass",
"gas_momentum_x",
"gas_min_density",
"gas_max_density",
"gas_equivalent_radius",
"gas_dt_cfl",
"gas_dt_accel",
"gas_dtcrit",
"gas_source_mass",
"gas_source_energy",
"status",
):
require_field(inspect.stdout, field)
@@ -118,6 +126,10 @@ def main() -> int:
raise AssertionError("CLI gas radius mismatch")
if float(gas_fields["gas_dtcrit"]) <= 0.0:
raise AssertionError("CLI gas dt mismatch")
if float(gas_fields["gas_mass"]) <= 0.0:
raise AssertionError("CLI gas extended mass mismatch")
if float(gas_fields["gas_source_mass"]) != 0.0:
raise AssertionError("CLI gas source default mismatch")
check = run_command([exe, model, "--check"])
if "mode: check" not in check.stdout: