0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 if ~evalin('base','exist(''THERING'')') || ~evalin('base','~isempty(whos(''global'',''THERING''))')
0014 error('Global variable THERING could not be found');
0015 end
0016 localindex = findcells(THERING,'PassMethod','StrMPoleSymplectic4RadPass');
0017 THERING = setcellstruct(THERING,'PassMethod',localindex, 'StrMPoleSymplectic4Pass');
0018 totalswitched = length(localindex);
0019
0020 localindex = findcells(THERING,'PassMethod','BndMPoleSymplectic4RadPass');
0021 THERING = setcellstruct(THERING,'PassMethod',localindex, 'BndMPoleSymplectic4Pass');
0022 totalswitched = totalswitched + length(localindex);
0023
0024 localindex = findcells(THERING,'PassMethod','BndMPoleSymplectic4E2RadPass');
0025 THERING = setcellstruct(THERING,'PassMethod',localindex, 'BndMPoleSymplectic4E2Pass');
0026 totalswitched = totalswitched + length(localindex);
0027
0028 disp(['PassMethod was changed to NOT include radiation in ',num2str(totalswitched), ' elements'])
0029 clear localindex totalswitched