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 8567129d authored by gsell's avatar gsell
Browse files

Merge branch '751-cyclotron-out-of-range-field-lookup' into 'master'

Resolve "Cyclotron out of range field lookup"

Closes #751

See merge request !608
parents bc40dbd5 7f359980
No related branches found
No related tags found
1 merge request!608Resolve "Cyclotron out of range field lookup"
...@@ -738,13 +738,13 @@ bool Cyclotron::interpolate(const double& rad, ...@@ -738,13 +738,13 @@ bool Cyclotron::interpolate(const double& rad,
With this we have B-field AND this is far more With this we have B-field AND this is far more
intuitive for me .... intuitive for me ....
*/ */
r1t1 = idx(ir, it); r1t1 = idx(ir , it);
r2t1 = idx(ir + 1, it); r2t1 = idx(ir + 1, it);
r1t2 = idx(ir, it + 1); r1t2 = idx(ir , it + 1);
r2t2 = idx(ir + 1, it + 1); r2t2 = idx(ir + 1, it + 1);
} }
if ((it >= 0) && (ir >= 0) && (it < Bfield_m.ntetS_m) && (ir < Bfield_m.nrad_m)) { if ((r1t1 >= 0) && (r2t2 < Bfield_m.ntot_m)) {
// B_{z} // B_{z}
double bzf = Bfield_m.bfld_m[r1t1] * wr2 * wt2 + double bzf = Bfield_m.bfld_m[r1t1] * wr2 * wt2 +
Bfield_m.bfld_m[r2t1] * wr1 * wt2 + Bfield_m.bfld_m[r2t1] * wr1 * wt2 +
......
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