Fixing a bug in injection of particles that was creating ghost particles

assumed to be inside the domain but without cell assigned.

Now, particles are assumed to be outside the domain (n_in = .FALSE.)
  until findCell assign them a cell.
This commit is contained in:
Jorge Gonzalez 2020-10-21 10:13:43 +02:00
commit 5368ff2bf3
3 changed files with 12 additions and 10 deletions

View file

@ -53,6 +53,7 @@ MODULE moduleSolver
part_temp%v(3) = -sin_alpha*v_p_oh_star(2)+cos_alpha*v_p_oh_star(3)
part_temp%pt = part%pt
part_temp%e_p = part%e_p
part_temp%n_in = .FALSE. !Assume particle is outside until cell is found
!Copy temporal particle to particle
part=part_temp