Fixed bug with number of collisions not computing correctly because
INT/REAL conversions. Number of collisions now take into account the different weight of particles inside a cell without impacting performance.
This commit is contained in:
parent
bf6caad56a
commit
e14c3ef65b
3 changed files with 32 additions and 23 deletions
|
|
@ -95,6 +95,8 @@ MODULE moduleMesh
|
|||
INTEGER(KIND=OMP_LOCK_KIND):: lock
|
||||
!Number of collisions per volume
|
||||
INTEGER:: nColl = 0
|
||||
!Total weight of particles inside cell
|
||||
REAL(8):: totalWeight = 0.D0
|
||||
CONTAINS
|
||||
PROCEDURE(initVol_interface), DEFERRED, PASS:: init
|
||||
PROCEDURE(scatter_interface), DEFERRED, PASS:: scatter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue