IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 916e5468 authored by ralfulrich's avatar ralfulrich
Browse files

warnings

parent 85c41f98
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ namespace corsika::geometry { ...@@ -35,7 +35,7 @@ namespace corsika::geometry {
Line() = delete; Line() = delete;
Line(const Line&) = default; Line(const Line&) = default;
Line(Line&&) = default; Line(Line&&) = default;
Line& operator=(const Line&) = default; Line& operator=(const Line&) = delete;
Line(Point const& pR0, VelocityVec const& pV0) Line(Point const& pR0, VelocityVec const& pV0)
: r0(pR0) : r0(pR0)
, v0(pV0) {} , v0(pV0) {}
......
...@@ -135,7 +135,7 @@ namespace corsika::geometry { ...@@ -135,7 +135,7 @@ namespace corsika::geometry {
LeapFrogTrajectory() = delete; LeapFrogTrajectory() = delete;
LeapFrogTrajectory(const LeapFrogTrajectory&) = default; LeapFrogTrajectory(const LeapFrogTrajectory&) = default;
LeapFrogTrajectory(LeapFrogTrajectory&&) = default; LeapFrogTrajectory(LeapFrogTrajectory&&) = default;
LeapFrogTrajectory& operator=(const LeapFrogTrajectory&) = default; LeapFrogTrajectory& operator=(const LeapFrogTrajectory&) = delete;
LeapFrogTrajectory(const Point& pos, const VelocityVec& initialVelocity, LeapFrogTrajectory(const Point& pos, const VelocityVec& initialVelocity,
MagneticFieldVector Bfield, MagneticFieldVector Bfield,
const decltype(square(corsika::units::si::meter) / const decltype(square(corsika::units::si::meter) /
......
...@@ -67,7 +67,7 @@ namespace corsika::process { ...@@ -67,7 +67,7 @@ namespace corsika::process {
direction = direction =
direction + direction.cross(magneticfield) * steplength * k; // Second Movement direction + direction.cross(magneticfield) * steplength * k; // Second Movement
position = position + direction * steplength / 2; 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); return std::make_tuple(position, direction.normalized(), steplength_true);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment