source: issm/trunk-jpl/src/m/model/recover_areas.m@ 10937

Last change on this file since 10937 was 2968, checked in by seroussi, 15 years ago

changed BuildFlag to FlagElements and moved it in utils
geography now uses FlagElements

File size: 965 bytes
Line 
1function [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
21end %end function
22
23
Note: See TracBrowser for help on using the repository browser.