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

Last change on this file since 12888 was 12888, checked in by jschierm, 13 years ago

Running python versions of setflowequation (and more).

File size: 898 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 filltype =getfieldvalue(options,'fill','none');
19
20end %end function
21
22
Note: See TracBrowser for help on using the repository browser.