Extend Gas restart and interfaces
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user