On 02/01/2012 01:04 AM, Tim Graber wrote:
I’m having a problem with the undulator program in shadow. I’ve included a pdf file showing two screens, the undulator configuration screen and a plot XY screen of (X’, Z’). Z’ has positive and negative values while X’ has only positive values. I set the emittance and the source size to 0 to eliminate any smearing. For large aperture angles, this causes a beam offset in the positive x direction. It seems like a bug to me. Any help is appreciated.
Timothy J. Graber
University of Chicago / CARS
9700 S Cass Ave.
Argonne, IL 60439
#1 Updated by Sanchez del Rio, Manuel over 8 years ago
- Status changed from New to Closed
Thanks a lot for pointing the problem. In fact, it is a bug introduced when porting shadow2 to shadow3. I have fixed it with the enclosed patch.
I understand that you're running windows, and probably you new a new binary version. Correct? If so, I'll prepare it asap, but not before one week, because I'm in the process of upgrading the windows computer.
--- shadow_synchrotron.f90-old 2012-02-02 09:24:02.255909000 + shadow_synchrotron.f90 2012-02-02 09:24:26.530262000 +0100
@ -2517,6 +2517,7 @
!! warning use this instead :
IF (WRAN(ISTAR1).LT.0.5) THETABM = -THETABM
+ IF (WRAN(ISTAR1).LT.0.5) PHI = -PHI
END IF !Undulator ends.