Project

General

Profile

Bug #9199

can't create a stepper when an accelerating cavity is present before a combined function sbend containing a quadrupole component

Added by Eric Stern over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Start date:
06/13/2015
Due date:
% Done:

0%

Estimated time:
Duration:

Description

registration throws an exception

*** ERROR *** 
*** ERROR *** File: /home/egstern/syn2-dev/build/chef-libs/beamline/src/CF_sbend.cc, Line: 665
*** ERROR *** double CF_sbend::getQuadrupole() const
*** ERROR *** Discrepancy in quadrupole strengths: 1.64831 != 1.64827
*** ERROR *** 
*** ERROR *** This message is printed only once.
*** ERROR *** 
Traceback (most recent call last):
  File "cyclo.py", line 239, in <module>
    stepper = synergia.simulation.Split_operator_stepper(lattice, 1, coll_operator, opts.steps)
RuntimeError: 
*** ERROR *** 
*** ERROR *** File: /home/egstern/syn2-dev/build/chef-libs/beamline/src/CF_sbend.cc, Line: 665
*** ERROR *** double CF_sbend::getQuadrupole() const
*** ERROR *** Discrepancy in quadrupole strengths: 1.64831 != 1.64827
*** ERROR *** 

History

#1 Updated by Eric Stern over 4 years ago

  • Status changed from New to Resolved

Fixed in commit:929d2cdccd8520e745a1ce5bbdeceb9d43f1e502
When element.setStrength() is called, we need to also adjust the member data integrated_strengths_

#2 Updated by Eric Stern over 4 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF