mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
fixed bug in assigning the front-faced outgoing current to cmfd object
This commit is contained in:
parent
3d8faaaf60
commit
f627f1645b
2 changed files with 2 additions and 2 deletions
|
|
@ -197,7 +197,7 @@ contains
|
|||
score_index = sum((bins - 1) * t % stride) + 1 ! incoming
|
||||
cmfd % current(7,h,i,j,k) = t % scores(score_index,1) % val
|
||||
bins(TS_SURFACE) = OUT_FRONT
|
||||
score_index = sum(t % stride(1:3) * ijk) + OUT_FRONT ! outgoing
|
||||
score_index = sum((bins - 1) * t % stride) + 1 ! outgoing
|
||||
cmfd % current(8,h,i,j,k) = t % scores(score_index,1) % val
|
||||
|
||||
! bottom surface
|
||||
|
|
|
|||
|
|
@ -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