mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
added core map check in preallocation of production matrix
This commit is contained in:
parent
e97fa4da41
commit
de13851635
1 changed files with 12 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue