Expose Solid summary interfaces

This commit is contained in:
Codex
2026-07-03 16:21:51 +08:00
parent d14ea370e5
commit 708016c9af
15 changed files with 486 additions and 51 deletions
+7
View File
@@ -29,6 +29,13 @@ int main()
if (state.particle_id_ext.size() != 4 || state.phase[0] != sphlite::PhaseSolid) {
return 1;
}
sphlite::SolidSummary solid = sphlite::solid_summary();
if (solid.active_count != 4 || solid.failed_count != 0 || solid.mass <= 0.0) {
return 1;
}
if (solid.dt_limits[0] <= 0.0 || solid.dt_limits[2] <= 0.0) {
return 1;
}
}
try {