added core map check in preallocation of production matrix

This commit is contained in:
Bryan Herman 2012-10-17 07:06:20 -07:00
parent e97fa4da41
commit de13851635

View file

@ -86,7 +86,8 @@ contains
subroutine preallocate_prod_matrix(this)
use global, only: cmfd, cmfd_coremap
use constants, only: CMFD_NOACCEL
use global, only: cmfd, cmfd_coremap
type(prod_operator) :: this
@ -148,6 +149,16 @@ contains
! get location indices
call matrix_to_indices(irow, g, i, j, k)
! check if not including reflector
if (cmfd_coremap) then
! check if at a reflector
if (cmfd % coremap(i,j,k) == CMFD_NOACCEL) then
cycle
end if
end if
! begin loop over off diagonal in-scattering
NFISS: do h = 1, ng