Add blast structural load caches

This commit is contained in:
Codex
2026-07-03 23:09:55 +08:00
parent b2a9caa54a
commit fc9c955dc7
8 changed files with 548 additions and 35 deletions
+4 -2
View File
@@ -21,7 +21,8 @@ module sph_input_reader
sph_explosive_set_control, sph_explosive_set_ignition, &
sph_explosive_build, sph_explosive_count_unbound_materials
use sph_blast, only: sph_blast_reset, sph_blast_add_region, &
sph_blast_count_unused_regions, sph_blast_refresh_snapshot
sph_blast_count_unused_regions
use sph_blast_load, only: sph_blast_load_reset, sph_blast_load_compute
use sph_solid, only: sph_solid_note_material, sph_solid_set_elastic, &
sph_solid_set_johnson_cook, sph_solid_set_failure, &
sph_solid_set_control, sph_solid_build_state, &
@@ -72,6 +73,7 @@ contains
active_material_name = 'MATERIAL'
active_orientation_name = 'ORIENTATION'
call sph_blast_reset()
call sph_blast_load_reset()
end subroutine sph_input_reset
subroutine sph_input_get_warning_count(count)
@@ -136,7 +138,7 @@ contains
if (ierr /= SPH_SUCCESS) return
call sph_explosive_build(ierr)
if (ierr /= SPH_SUCCESS) return
call sph_blast_refresh_snapshot(ierr)
call sph_blast_load_compute(ierr)
if (ierr /= SPH_SUCCESS) return
call sph_gas_count_unbound_materials(gas_unbound_count)
input_warning_count = input_warning_count + gas_unbound_count