1 | function [hutterflag macayealflag pattynflag stokesflag filltype]=recover_areas(md,varargin);
|
---|
2 | %RECOVER_AREAS - flag the element depending on the physical model that is assigned to them
|
---|
3 | %
|
---|
4 | % This routine is called by setelementstype, do not use
|
---|
5 | %
|
---|
6 | % Usage:
|
---|
7 | % [hutterflag macayealflag pattynflag stokesflag filltype]=recover_areas(md,varargin);
|
---|
8 |
|
---|
9 | %go through varargin, extract options and plug them into subtype options, by order of appearance
|
---|
10 | options=pairoptions(varargin{:});
|
---|
11 | options=deleteduplicates(options,1);
|
---|
12 |
|
---|
13 | %recover elements distribution
|
---|
14 | hutterflag =FlagElements(md,getfieldvalue(options,'hutter',''));
|
---|
15 | macayealflag=FlagElements(md,getfieldvalue(options,'macayeal',''));
|
---|
16 | pattynflag =FlagElements(md,getfieldvalue(options,'pattyn',''));
|
---|
17 | stokesflag =FlagElements(md,getfieldvalue(options,'stokes',''));
|
---|
18 | hutterflag =FlagElements(md,getfieldvalue(options,'hutter',''));
|
---|
19 | filltype =getfieldvalue(options,'fill','none');
|
---|
20 |
|
---|
21 | end %end function
|
---|
22 |
|
---|
23 |
|
---|