Changeset 13027
- Timestamp:
- 08/14/12 10:03:11 (13 years ago)
- Location:
- issm/trunk-jpl/src/m
- Files:
-
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/parameterization/setflowequation.m
r13006 r13027 3 3 % 4 4 % This routine works like plotmodel: it works with an even number of inputs 5 % 'hutter','macayeal',' pattyn','stokes' and 'fill' are the possible options5 % 'hutter','macayeal','l1l2','pattyn','stokes' and 'fill' are the possible options 6 6 % that must be followed by the corresponding exp file or flags list 7 7 % It can either be a domain file (argus type, .exp extension), or an array of element flags. … … 280 280 error('error coupling domain too irregular'); 281 281 end 282 end 283 284 function [hutterflag macayealflag pattynflag stokesflag filltype]=recover_areas(md,varargin); % {{{ 285 %RECOVER_AREAS - flag the element depending on the physical model that is assigned to them 286 % 287 % This routine is called by setelementstype, do not use 288 % 289 % Usage: 290 % [hutterflag macayealflag pattynflag stokesflag filltype]=recover_areas(md,varargin); 291 292 %go through varargin, extract options and plug them into subtype options, by order of appearance 293 options=pairoptions(varargin{:}); 294 options=deleteduplicates(options,1); 295 296 %recover elements distribution 297 hutterflag =FlagElements(md,getfieldvalue(options,'hutter','')); 298 macayealflag=FlagElements(md,getfieldvalue(options,'macayeal','')); 299 pattynflag =FlagElements(md,getfieldvalue(options,'pattyn','')); 300 stokesflag =FlagElements(md,getfieldvalue(options,'stokes','')); 301 filltype =getfieldvalue(options,'fill','none'); 302 303 end %end function }}} -
issm/trunk-jpl/src/m/parameterization/setflowequation.py
r13006 r13027 4 4 from recover_areas import * 5 5 from MatlabFuncs import * 6 6 from FlagElements import * 7 8 def recover_areas(md,*args): # {{{ 9 """ 10 RECOVER_AREAS - flag the element depending on the physical model that is assigned to them 11 12 This routine is called by setelementstype, do not use 13 14 Usage: 15 [hutterflag macayealflag pattynflag stokesflag filltype]=recover_areas(md,varargin); 16 """ 17 18 #go through varargin, extract options and plug them into subtype options, by order of appearance 19 options=pairoptions(*args) 20 # options=deleteduplicates(options,1); 21 22 #recover elements distribution 23 hutterflag =FlagElements(md,options.getfieldvalue('hutter','')) 24 macayealflag=FlagElements(md,options.getfieldvalue('macayeal','')) 25 pattynflag =FlagElements(md,options.getfieldvalue('pattyn','')) 26 stokesflag =FlagElements(md,options.getfieldvalue('stokes','')) 27 filltype =options.getfieldvalue('fill','none') 28 29 return hutterflag,macayealflag,pattynflag,stokesflag,filltype 30 #}}} 7 31 def setflowequation(md,*args): 8 32 """
Note:
See TracChangeset
for help on using the changeset viewer.