From 26e96df5df37e79db88b78dacaf0b78ce7a88f08 Mon Sep 17 00:00:00 2001 From: Christian Sendlinger Date: Thu, 22 Feb 2024 15:49:06 +0100 Subject: [PATCH] fixed bug in driftmover --- src/simulation/mover.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulation/mover.cpp b/src/simulation/mover.cpp index 46e0fc7..2719b38 100755 --- a/src/simulation/mover.cpp +++ b/src/simulation/mover.cpp @@ -206,7 +206,7 @@ void DriftMover::move(particle::Particle* particle, if (v_perp_norm > 0.) { const double gyro_radius = particle->mass_kg() * v_perp_norm / - (B_norm * std::abs(particle->charge_C())); + (B_norm * particle->charge_C()); const blitz::TinyVector velocity_normal = (-1) * blitz::cross(B, v_perp);