source: MML/trunk/at/atphysics/radiationoff.m @ 5

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
10if ~isglobal(THERING)
11   error('Global variable THERING could not be found');
12end
13localindex = findcells(THERING,'PassMethod','StrMPoleSymplectic4RadPass');
14THERING = setcellstruct(THERING,'PassMethod',localindex, 'StrMPoleSymplectic4Pass');
15totalswitched = length(localindex);
16
17localindex = findcells(THERING,'PassMethod','BndMPoleSymplectic4RadPass');
18THERING = setcellstruct(THERING,'PassMethod',localindex, 'BndMPoleSymplectic4Pass');
19totalswitched = totalswitched + length(localindex);
20
21disp(['PassMethod was changed to NOT include radiation in ',num2str(totalswitched),  ' elements'])     
22clear localindex totalswitched
Note: See TracBrowser for help on using the repository browser.