If "current" score is specified, make sure a mesh filter is also

specified. Closes #322 on github.
This commit is contained in:
Paul Romano 2014-09-25 21:29:07 -04:00
parent 9cd04862bb
commit 2a95ef7a42

View file

@ -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)