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 | |
---|
1 | function 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 | |
---|
10 | global THERING |
---|
11 | |
---|
12 | Answer = 0; |
---|
13 | |
---|
14 | localindex = findcells(THERING,'PassMethod','StrMPoleSymplectic4RadPass'); |
---|
15 | if ~isempty(localindex) |
---|
16 | Answer = 1; |
---|
17 | return; |
---|
18 | end |
---|
19 | |
---|
20 | localindex = findcells(THERING,'PassMethod','BndMPoleSymplectic4RadPass'); |
---|
21 | if ~isempty(localindex) |
---|
22 | Answer = 1; |
---|
23 | end |
---|
24 | |
---|
Note: See
TracBrowser
for help on using the repository browser.