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
+8
View File
@@ -68,6 +68,14 @@ int main()
if (gas_limits.cfl <= 0.0 || gas_limits.dtcrit <= 0.0) {
return 1;
}
sphlite::GasExtendedSummary extended = sphlite::gas_extended_summary();
if (extended.mass <= 0.0 || extended.density_range[1] < extended.density_range[0]) {
return 1;
}
sphlite::GasSourceSummary source = sphlite::gas_source_summary();
if (source.mass_source != 0.0 || source.energy_source != 0.0) {
return 1;
}
gas_session.close();
return 0;