source: MML/trunk/mml/at/isradiationon.m @ 4

Last change on this file since 4 was 4, checked in by zhangj, 10 years ago

Initial import--MML version from SOLEIL@2013

File size: 449 bytes
Line 
1function Answer = isradiationon
2%ISRADIATIONON - 1 if a radiation passmethod is found
3%
4%  See also setradiation, getcavity, setcavity
5%
6%  Written by Greg Portmann
7
8
9
10global THERING
11
12Answer = 0;
13
14localindex = findcells(THERING,'PassMethod','StrMPoleSymplectic4RadPass');
15if ~isempty(localindex)
16    Answer = 1;
17    return;
18end
19
20localindex = findcells(THERING,'PassMethod','BndMPoleSymplectic4RadPass');
21if ~isempty(localindex)
22    Answer = 1;
23end
24
Note: See TracBrowser for help on using the repository browser.