Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit f5b5ab10 authored by frey_m's avatar frey_m
Browse files

Issue #273: simplify

parent aa27cce4
No related branches found
No related tags found
1 merge request!51Issue 273
...@@ -541,10 +541,12 @@ bool ClosedOrbitFinder<Value_type, Size_type, Stepper>::findOrbit(value_type acc ...@@ -541,10 +541,12 @@ bool ClosedOrbitFinder<Value_type, Size_type, Stepper>::findOrbit(value_type acc
// radial momentum; Gordon, formula (20) // radial momentum; Gordon, formula (20)
container_type init; container_type init;
if (rguess < 0) // r pr z pz
init = {beta * acon, 0.0, 0.0, 1.0}; init = {beta * acon, 0.0, 0.0, 1.0};
else
init = {rguess * 0.001, 0.0, 0.0, 1.0}; if (rguess >= 0.0) {
init[0] = rguess * 0.001;
}
do { do {
......
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