Commit afd40b48 authored by kraus's avatar kraus

fixing if statement that was always evaluated true

parent b55bddd8
......@@ -1434,7 +1434,7 @@ void SBend::SetBendEffectiveLength(double startField, double endField) {
// Adjust field map to match bend angle.
double error = std::abs(actualBendAngle - angle_m);
if(error > 1.0 - 6)
if(error > 1.0e-6)
FindBendEffectiveLength(startField, endField);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment