Integrate water explicit stepping and dt limits
This commit is contained in:
1 parent
662129d2bb
commit
4809701068
10 files changed
+226
-33
No files matched your search
@@ -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)
|
||||
|
||||