bugfix in zero gyro radius guard
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include "simulation/particle.h"
|
||||
#include "simulation/reflector.h"
|
||||
#include "simulation/terminator.h"
|
||||
#include "constants/sim_constants.h"
|
||||
|
||||
#include "tools/simulation_time.h"
|
||||
|
||||
@@ -204,7 +205,7 @@ void DriftMover::move(particle::Particle* particle,
|
||||
const blitz::TinyVector<double, 3> dv_electric =
|
||||
timestep * particle->charge_C() * E_parallel / particle->mass_kg();
|
||||
|
||||
if (v_perp_norm > 0.) {
|
||||
if (v_perp_norm > SimConstants::compare_epsilon) {
|
||||
const double gyro_radius = particle->mass_kg() * v_perp_norm /
|
||||
(B_norm * particle->charge_C());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user