Harden coupling diagnostics and pressure wave smoke

This commit is contained in:
Codex
2026-07-03 00:00:53 +08:00
parent 7e98da3301
commit f22fa74038
5 changed files with 123 additions and 60 deletions
+3
View File
@@ -110,9 +110,12 @@ contains
if (.not. is_finite_vector(position)) call fail('water coupling position after force is not finite')
if (.not. is_finite_vector(velocity)) call fail('water coupling velocity after force is not finite')
if (.not. is_finite(particle_pressure)) call fail('water coupling pressure is not finite')
call sph_coupling_import_facet_load(1, force, ierr)
call assert_ok(ierr, 'water coupling facet load import failed')
call sph_coupling_get_diagnostics(work, energy, momentum)
if (work <= 0.0_rk) call fail('coupling work placeholder not updated')
if (energy <= 0.0_rk) call fail('coupling energy placeholder not updated')
if (momentum(3) <= 0.0_rk) call fail('coupling momentum placeholder not updated')
if (coupling_type /= 0) call fail('water coupling type should remain neutral')