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:
Jorge Gonzalez 2020-10-18 10:26:58 +02:00
commit e14c3ef65b
3 changed files with 32 additions and 23 deletions

View file

@ -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