mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Fixed bug where no surface current tallies caused segfault.
This commit is contained in:
parent
6f9a347cac
commit
cbb23472f3
1 changed files with 2 additions and 2 deletions
|
|
@ -604,14 +604,14 @@ contains
|
|||
xyz0 = p % last_xyz
|
||||
xyz1 = p % xyz
|
||||
|
||||
! Get pointer to tally and mesh
|
||||
! Get pointer to tally
|
||||
t => tallies(i)
|
||||
m => meshes(t % mesh)
|
||||
|
||||
! Skip non-surface-current tallies
|
||||
if (.not. t % surface_current) cycle
|
||||
|
||||
! Determine indices for starting and ending location
|
||||
m => meshes(t % mesh)
|
||||
call get_mesh_indices(m, xyz0, ijk0, start_in_mesh)
|
||||
call get_mesh_indices(m, xyz1, ijk1, end_in_mesh)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue