Last change
on this file since 5 was
4,
checked in by zhangj, 11 years ago
|
Initial import--MML version from SOLEIL@2013
|
File size:
946 bytes
|
Line | |
---|
1 | %RADIATIONOFF turns classical radiation OFF |
---|
2 | % Switch all magnets currently set to use pass-methods |
---|
3 | % 'BndMPoleSymplectic4RadPass' and 'StrMPoleSymplectic4RadPass' |
---|
4 | % to their equivalents without radiation |
---|
5 | % 'BndMPoleSymplectic4Pass' and 'StrMPoleSymplectic4Pass' |
---|
6 | % |
---|
7 | % See also RADIATIONON, CAVITYON, CAVITYOFF |
---|
8 | |
---|
9 | |
---|
10 | if ~isglobal(THERING) |
---|
11 | error('Global variable THERING could not be found'); |
---|
12 | end |
---|
13 | localindex = findcells(THERING,'PassMethod','StrMPoleSymplectic4RadPass'); |
---|
14 | THERING = setcellstruct(THERING,'PassMethod',localindex, 'StrMPoleSymplectic4Pass'); |
---|
15 | totalswitched = length(localindex); |
---|
16 | |
---|
17 | localindex = findcells(THERING,'PassMethod','BndMPoleSymplectic4RadPass'); |
---|
18 | THERING = setcellstruct(THERING,'PassMethod',localindex, 'BndMPoleSymplectic4Pass'); |
---|
19 | totalswitched = totalswitched + length(localindex); |
---|
20 | |
---|
21 | disp(['PassMethod was changed to NOT include radiation in ',num2str(totalswitched), ' elements']) |
---|
22 | clear localindex totalswitched |
---|
Note: See
TracBrowser
for help on using the repository browser.