IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 5c942ddc authored by Ralf M Ulrich's avatar Ralf M Ulrich
Browse files

type cast

parent 12ad30ab
No related branches found
No related tags found
1 merge request!278Magnetic Tracking
Pipeline #2781 passed with warnings
......@@ -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 * (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);
}
......
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