Conference Room SAD
[thread display] [new arrival display] [word search] [past log] [管理用]

Subject A bug with SAD compiled with INTEL compilers???
Date: 2013/12/05(Thu) 14:00:12
ContributorZHE DUAN < >

Hi,
I'm using a 32bit Debian squeeze operating system, and compiled SAD with intel compilers, the sad.conf is :

COMPILER=Intel
USE_IFC=13.1.1
FOPT=-lbsd
USE_X11=YES
X11_PREFIX=/usr
USE_TCLTK=YES

It compiles well after commenting OBJSIM_BSD=sim/setmode.o and the dependence of OBJSIM on OBJSIM_BSD. But when I tried the following example, it showed some errors which disappeared when using SAD compiled with GNU compilers.

MOMENTUM= 1 GEV; ON ECHO;OFF EMIT COD CTIME RAD RFSW RADCOD;
LINE CELL=( -IP2 L00 QF SF L1 B L1 QD SD L1 B L1 DF P1 BV CA1)
CELL1=( -IP2 L00 QF1 SF L1 B L1 QD1 SD L1 B L1 DF P1 BV CA1)
;
LINE TESTLINE=(CELL CELL1)
;
DRIFT L1 =(L = 1)
L00 =(L=0)
;
BEND B = (L=5 ANGLE=.1 E1=0.5 E2=0.5)
B1= (L=5 ANGLE=.1 E1=0.5 E2=0.5)
B2= (L=5 ANGLE=.1 E1=0.5 E2=0.5)
B3= (L=5 ANGLE=.1 E1=0.5 E2=0.5)
BV=(L=1 ANGLE=0.001 ROTATE=90 DEG) ;
QUAD QF =(L = 1 K1 = 0.1549322394 )
QD =(L = 1 K1 =-0.1549322394 )
QF1 =(L = 1 K1 = 0.1549322394 )
QD1 =(L = 1 K1 =-0.1549322394 )
;
SEXT SF =(L = 1 K2=0.1)
SD =(L = 1 )
;
MAP P1 =()
;
MARK IP1 =(BETAX = 1.93 BETAY =1.93 EMIX = 4.0E-5
EMIY = 4.0E-5 DP = 0.01 SIGZ = 1.5E-3 )
IP2 =(BETAX = 0.703 BETAY = 0.703 EMIX = 4.0E-5
EMIY = 4.0E-5 DP = 0.01 SIGZ = 8E-4 )
;
CAVI CA1 = (VOLT=11 MV HARM=100)
;
DECA DF=(L=2 K4=1)
;
APERT A1=(DX1=0.001 DY1=0.001 DX1=-0.001 DY1=-0.001 JDPX=0.001 JDPY=0.001)
;
FFS USE=TESTLINE; cell;calc;emit;
SetFudge[af_]:=Module[{kdir, factor, quads},
factor=af;
quads=Element["NAME","Q*"];
Scan[( k1=factor*Element["K1",#];
SetElement[#, ,{"K1"->k1}];
)&, quads ]; ];

The output of this example is:


zhe@zhe:~/temp$ runsad test.sad
*** Welcome to SAD Ver.1.0.10.5.6a12 built at 2013-12-05 12:46:30 +0800 ***
*** Today: 12:46:38 Thursday 12/05/2013 ***
cpu time= 0.000 (sec) dt= 0.000(msec) free area:: 1793
OFF LOG ECHO;READ 77 ; 23
cpu time= 0.000 (sec) dt= 0.000(msec) free area:: 1793
cpu time= 0.000 (sec) dt= 0.000(msec) free area:: 1792
cpu time= 0.000 (sec) dt= 0.000(msec) free area:: 1792
cpu time= 0.000 (sec) dt= 0.000(msec) free area:: 1792

LINE CELL=( -IP2 L00 QF SF L1 B L1 QD SD L1 B L1 DF P1 BV CA1)
CELL1=( -IP2 L00 QF1 SF L1 B L1 QD1 SD L1 B L1 DF P1 BV CA1)
;
LINE TESTLINE=(CELL CELL1)
;
DRIFT L1 =(L = 1)
L00 =(L=0)
;
BEND B = (L=5 ANGLE=.1 E1=0.5 E2=0.5)
B1= (L=5 ANGLE=.1 E1=0.5 E2=0.5)
B2= (L=5 ANGLE=.1 E1=0.5 E2=0.5)
B3= (L=5 ANGLE=.1 E1=0.5 E2=0.5)
BV=(L=1 ANGLE=0.001 ROTATE=90 DEG)
;
QUAD QF =(L = 1 K1 = 0.1549322394 )
QD =(L = 1 K1 =-0.1549322394 )
QF1 =(L = 1 K1 = 0.1549322394 )
QD1 =(L = 1 K1 =-0.1549322394 )
;
SEXT SF =(L = 1 K2=0.1)
SD =(L = 1 )
;
MAP P1 =()
;
MARK IP1 =(BETAX = 1.93 BETAY =1.93 EMIX = 4.0E-5
EMIY = 4.0E-5 DP = 0.01 SIGZ = 1.5E-3 )
IP2 =(BETAX = 0.703 BETAY = 0.703 EMIX = 4.0E-5
EMIY = 4.0E-5 DP = 0.01 SIGZ = 8E-4 )
;
CAVI CA1 = (VOLT=11 MV HARM=100)
;
DECA DF=(L=2 K4=1)
;
APERT A1=(DX1=0.001 DY1=0.001 DX1=-0.001 DY1=-0.001 JDPX=0.001 JDPY=0.001)
;

FFS USE=TESTLINE;
*** SADScript Initialization: /home/zhe/Applications/SAD/share/Packages/init.n
***
tdr: Command not found.
*** Runtime Environment: /home/zhe/Applications/SAD/share/Packages/init.lo
cal.n ***
RFSW RADCOD RAD FLUC INTRA POL COD DAPER EMIOU CMPLO FOURI SMEAR
F F F T F F F F F F F T
Design orbit length = 42.0000000000000
cell;calc;emit;
Matched. ( 0.000 ) DP = 0.01000 DP0 = 0.00000 ExponentOfResidual = 2.0 OffMomentumWeight = 1.000
$$$ f AX ####### # -2.591722 $$$ f BX ####### # 36.312903 $$$ f NX ####### # .567305
$$$ f AY ####### # .241998 $$$ f BY ####### # 4.825893 $$$ f NY ####### # .580200
$$$ f LENG ####### # 42.000000

Closed orbit:
x px/p0 y py/p0 z dp/p0
Entrance : .000000 .000000 .000000 .000000 .000000 .000000
Exit : .000000 .000000 .000000 .000000 .000000 .000000

Extended Twiss Parameters:
AX: -2.62102 BX: 36.75194 ZX: -.178045 EX: 2.321574
PSIX: 3.18E-16 ZPX: -.008014 EPX: .160322
R1: 8.265E-4 R2: -.008752 AY: .241998 BY: 4.825893 ZY: 2.544E-4 EY: -.001703
R3: -9.28E-5 R4: .001884 PSIY: 7.71E-22 ZPY: -4.72E-6 EPY: -2.86E-4
AZ: -.107997 BZ: 1.312558
PSIZ: .000000
Units: B(X,Y,Z), E(X,Y), R2: m | PSI(X,Y,Z): radian | ZP(X,Y), R3: 1/m

Design momentum P0 = 1.0000000 GeV Revolution freq. f0 = 7137914.7 Hz
Energy loss per turn U0 = 1.1266E-4 MV Effective voltage Vc = .0000000 MV
Equilibrium position dz = .0000000 mm Momentum compact. alpha = .0133962
Orbit dilation dl = .0000000 mm Effective harmonic # h = .0000000
Bucket height dV/P0 = .0000000

Imag.tune:-0.0000000 -0.0000000 0.0000000
Real tune:-0.4364929 -0.4198003 -0.0684876

Damping per one revolution:
X : -5.553540E-08 Y : -5.633123E-08 Z : -1.134583E-07
Damping time (sec):
X : 2.52266 Y : 2.48702 Z : 1.23479
Tune shift due to radiation:
X : -2.496536E-09 Y : 1.812020E-09 Z : -3.096510E-10
Damping partition number:
X : 0.9859 Y : 1.0000 Z : 2.0141

Emittance X = 4.93870E-9 m Emittance Y = 4.9067E-14 m
Emittance Z = 1.93472E-8 m Energy spread = 1.22753E-4
Bunch Length = .16240670 mm Beam tilt = 4.32247E-4 rad
Beam size xi = .51260026 mm Beam size eta = 5.28520E-4 mm

SetFudge[af_]:=Module[{kdir, factor, quads},
factor=af;
quads=Element["NAME","Q*"];
Scan[(
k1= Element["K1",#];
k1*=factor;
SetElement[#, ,{"K1"->k1}];
)&,
quads
];
];

SetFudge[1.0];
???General::invset: Invalid set to 0 in (Element$[d$4,"QF"]=(.1549322394 "QF"))
???General::abort: Aborted:
SetFudge[1.0]
^
???General::incomplete: Incomplete expression 0]:
???-FFS-Error-?Undefined command or element: SETFUDGE[1.0]
In[4]:=


Could anyone help me to identity what is the cause for this error, is it a bug or I used the wrong sad.conf in compilation? Thanks!


- 関連一覧ツリー (Click ▼ to display all articles in a thread.)