source: MML/trunk/mml/getvcmfamily.m @ 4

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

Initial import--MML version from SOLEIL@2013

File size: 785 bytes
Line 
1function Family = getvcmfamily
2%GETVCMFAMILY - Returns the default vertical corrector family
3%  Family = getvcmfamily
4%
5%  The family name is determined by the MemberOf field equal to 'VCM'
6%
7%  See also gethbpmfamily, getvbpmfamily, gethcmfamily
8%
9%  Writen by Greg Portmann
10
11persistent WarningFlag
12
13Family = findmemberof('VCM');
14
15if isempty(Family)
16    Family = findmemberof('VCOR');
17    if isempty(Family)
18        %Family = {'VCM'};
19        if isempty(WarningFlag)
20            fprintf('\n   No default vertical corrector family has been specified in the MML.\n');
21            fprintf('   To define one, add ''VCM'' or ''VCOR'' to the .MemberOf field for the default family.\n\n');
22            WarningFlag = 1;
23        end
24
25        Family = {''};
26    end
27end
28
29Family = Family{1};
30
Note: See TracBrowser for help on using the repository browser.