Project

General

Profile

Bug #1221

undulator bug

Added by Sanchez del Rio, Manuel almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Start date:
02/02/2012
Due date:
% Done:

0%


Description

On 02/01/2012 01:04 AM, Tim Graber wrote:

Hi Manuel-

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.

Best,

Tim


Timothy J. Graber

Senior Scientist

University of Chicago / CARS

9700 S Cass Ave.

Argonne, IL 60439

Phone (630)252-0462

Fax (630)252-0460

ShadowUndulator.pdf (69 KB) Sanchez del Rio, Manuel, 02/02/2012 09:36 AM

History

#1 Updated by Sanchez del Rio, Manuel almost 8 years ago

  • Status changed from New to Closed

Dear Tim,
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.

Many thanks,

Manuel

--- shadow_synchrotron.f90-old 2012-02-02 09:24:02.255909000 0100
+
+ 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
END IF !Undulator ends.

Also available in: Atom PDF