diff --git a/Framework/Geometry/Line.h b/Framework/Geometry/Line.h index 089cc6120c4a54fbab5dbe3c507519afbc0bdea8..f54b02dbd0914b94265b596107037fbac7d0ec43 100644 --- a/Framework/Geometry/Line.h +++ b/Framework/Geometry/Line.h @@ -35,7 +35,7 @@ namespace corsika::geometry { Line() = delete; Line(const Line&) = default; Line(Line&&) = default; - Line& operator=(const Line&) = default; + Line& operator=(const Line&) = delete; Line(Point const& pR0, VelocityVec const& pV0) : r0(pR0) , v0(pV0) {} diff --git a/Framework/Geometry/Trajectory.h b/Framework/Geometry/Trajectory.h index de49a7272d6c4525f7c98c6852aac7d9a668a1c3..47f498d8a8e90a8f526b1a445279f7e47f8a537f 100644 --- a/Framework/Geometry/Trajectory.h +++ b/Framework/Geometry/Trajectory.h @@ -135,7 +135,7 @@ namespace corsika::geometry { LeapFrogTrajectory() = delete; LeapFrogTrajectory(const LeapFrogTrajectory&) = default; LeapFrogTrajectory(LeapFrogTrajectory&&) = default; - LeapFrogTrajectory& operator=(const LeapFrogTrajectory&) = default; + LeapFrogTrajectory& operator=(const LeapFrogTrajectory&) = delete; LeapFrogTrajectory(const Point& pos, const VelocityVec& initialVelocity, MagneticFieldVector Bfield, const decltype(square(corsika::units::si::meter) / diff --git a/Processes/TrackingLeapFrogCurved/Tracking.h b/Processes/TrackingLeapFrogCurved/Tracking.h index 63e1dad56fc512b941c122b41cc09358e0039937..ee0ba6e7f950e5be656b2d2c3b42dc30e1c7dc5b 100644 --- a/Processes/TrackingLeapFrogCurved/Tracking.h +++ b/Processes/TrackingLeapFrogCurved/Tracking.h @@ -67,7 +67,7 @@ namespace corsika::process { direction = direction + direction.cross(magneticfield) * steplength * k; // Second Movement position = position + direction * steplength / 2; - auto steplength_true = steplength_true * (1.0 + double(direction.norm())) / 2; + auto steplength_true = steplength * (1.0 + double(direction.norm())) / 2; return std::make_tuple(position, direction.normalized(), steplength_true); }