Fixed segmentation fault in Coulomb collisions

When the relative velocity between a charged particle and the background
for Coulomb collisions (W in the code) was low, there was a
segmentation fault. This is fixed now as if the norm of the relative
velocity (normW) in the code is too low, no collision is applied.
This commit is contained in:
Jorge Gonzalez 2023-03-12 17:02:12 +01:00
commit f4448d9e7a
2 changed files with 16 additions and 1 deletions

View file

@ -70,7 +70,6 @@ MODULE moduleSolver
CHARACTER(:), ALLOCATABLE:: pusherType
REAL(8):: tau, tauSp
!TODO: Reorganize if Cart pushers are combined
SELECT CASE(mesh%dimen)
CASE(0)
self%pushParticle => push0D