Integrate water explicit stepping and dt limits

This commit is contained in:
Codex committed 2026-07-02 20:52:05 +08:00
1 parent 662129d2bb
commit 4809701068
10 files changed
+226 -33

No files matched your search

+10 -1
View File
@@ -3,7 +3,8 @@ program test_smoke
use sph_error, only: SPH_SUCCESS
use sph_api, only: sph_initialize, sph_finalize, sph_get_version, &
sph_get_particle_count, sph_get_current_time, sph_advance_explicit, &
sph_get_particle_state_capacity, sph_get_particle_state
sph_get_particle_state_capacity, sph_get_particle_state, sph_read_inp, &
sph_build_model
use sph_database, only: sph_db_allocate, SPH_PHASE_SOLID, SPH_STATUS_ACTIVE
implicit none
@@ -60,6 +61,14 @@ program test_smoke
call sph_advance_explicit(0.0_rk, ierr)
if (ierr == SPH_SUCCESS) call fail('zero time step did not fail')
call sph_finalize(ierr)
call assert_ok(ierr, 'finalize before positive advance failed')
call sph_initialize(ierr)
call assert_ok(ierr, 'initialize before positive advance failed')
call sph_read_inp('tests/data/water_body_force_020.inp', ierr)
call assert_ok(ierr, 'read water input failed')
call sph_build_model(ierr)
call assert_ok(ierr, 'build water model failed')
call sph_advance_explicit(1.0e-6_rk, ierr)
call assert_ok(ierr, 'explicit advance failed')
call sph_get_current_time(time, step, ierr)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.