mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
If "current" score is specified, make sure a mesh filter is also
specified. Closes #322 on github.
This commit is contained in:
parent
9cd04862bb
commit
2a95ef7a42
1 changed files with 6 additions and 0 deletions
|
|
@ -2647,6 +2647,12 @@ contains
|
|||
! Get index of mesh filter
|
||||
k = t % find_filter(FILTER_MESH)
|
||||
|
||||
! Check to make sure mesh filter was specified
|
||||
if (k == 0) then
|
||||
message = "Cannot tally surface current without a mesh filter."
|
||||
call fatal_error()
|
||||
end if
|
||||
|
||||
! Get pointer to mesh
|
||||
i_mesh = t % filters(k) % int_bins(1)
|
||||
m => meshes(i_mesh)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue