Add 0.7.1 blast snapshot diagnostics

This commit is contained in:
Codex
2026-07-04 00:15:57 +08:00
parent 6d06fd489a
commit e5ee0f5c3c
5 changed files with 240 additions and 25 deletions
+10
View File
@@ -233,8 +233,11 @@ contains
subroutine sph_blast_accumulate_region(region)
integer, intent(in) :: region
integer :: i
logical :: active_in_region
do i = 1, npart
active_in_region = sph_blast_is_active(i) .and. &
sph_blast_in_region(region, i)
if (sph_blast_phase_matches(blast_source_phase(region), &
particle_phase(i))) then
if (sph_blast_source_accepts(region, i)) then
@@ -243,6 +246,9 @@ contains
blast_skipped_source_count(region) = &
blast_skipped_source_count(region) + 1
end if
else if (active_in_region) then
blast_skipped_source_count(region) = &
blast_skipped_source_count(region) + 1
end if
if (sph_blast_phase_matches(blast_target_phase(region), &
particle_phase(i))) then
@@ -252,6 +258,10 @@ contains
blast_skipped_target_count(region) = &
blast_skipped_target_count(region) + 1
end if
else if (active_in_region .and. &
sph_blast_particle_in_target_set(region, i)) then
blast_skipped_target_count(region) = &
blast_skipped_target_count(region) + 1
end if
call sph_blast_accumulate_environment(region, i)
end do