From 1194dba918125a3390fa98ecaf24ac2e7065bba8 Mon Sep 17 00:00:00 2001 From: csendlinger Date: Tue, 20 May 2025 16:47:30 +0200 Subject: [PATCH] Hotfix Drift Mover --- 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 8c33d24..6767555 100755 --- a/src/simulation/mover.cpp +++ b/src/simulation/mover.cpp @@ -344,7 +344,7 @@ void DriftMover::move(particle::Particle* particle, const blitz::TinyVector dv_electric = timestep * particle->charge_C() * force_over_charge_parallel / particle->mass_kg(); - if (v_perp_norm > SimConstants::compare_epsilon) { + if (v_perp_norm/v_parallel_norm > SimConstants::compare_epsilon) { const double gyro_radius = particle->mass_kg() * v_perp_norm / (B_norm * particle->charge_C());