mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
fixed bug when allocating matrices from core map w/ multiple energy groups
This commit is contained in:
parent
7911291903
commit
3d8faaaf60
2 changed files with 3 additions and 3 deletions
|
|
@ -52,7 +52,7 @@ contains
|
|||
write(108,*) cmfd % dhat
|
||||
|
||||
! write cmfd object to hdf5 file
|
||||
! call write_hdf5()
|
||||
call write_hdf5()
|
||||
|
||||
! solve diffusion equation
|
||||
call cmfd_solver()
|
||||
|
|
@ -668,7 +668,7 @@ use timing, only: timer_start, timer_stop
|
|||
|
||||
! calculate dimensions of matrix
|
||||
if (allocated(cmfd % coremap)) then
|
||||
n = cmfd % mat_dim
|
||||
n = cmfd % mat_dim * ng
|
||||
else
|
||||
n = nx*ny*nz*ng
|
||||
end if
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ contains
|
|||
|
||||
! get idx from core map
|
||||
nidx = ng*(cmfd % coremap(i,j,k)) - (ng - g)
|
||||
|
||||
write(200,*) g,i,j,k,nidx
|
||||
else
|
||||
|
||||
! compute index
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue