fix possible issue in particle injection
This commit is contained in:
parent
2ee58b6b77
commit
c7d205e4dd
1 changed files with 1 additions and 0 deletions
|
|
@ -156,6 +156,7 @@ MODULE moduleInject
|
|||
|
||||
!Calculates cumulative probability
|
||||
ALLOCATE(self%cumWeight(1:self%nEdges))
|
||||
et = 1
|
||||
self%cumWeight(1) = mesh%edges(self%edges(et))%obj%weight
|
||||
DO et = 2, self%nEdges
|
||||
self%cumWeight(et) = mesh%edges(self%edges(et))%obj%weight + self%cumWeight(et-1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue