Changeset 6712
- Timestamp:
- 12/10/10 09:04:49 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/model/setelementstype.m
r6705 r6712 41 41 hutterflag(find(~macayealflag & ~pattynflag))=1; 42 42 elseif strcmpi(filltype,'macayeal'), 43 macayealflag(find(~hutterflag & ~pattynflag ))=1;43 macayealflag(find(~hutterflag & ~pattynflag & ~stokesflag))=1; 44 44 elseif strcmpi(filltype,'pattyn'), 45 45 pattynflag(find(~hutterflag & ~macayealflag & ~stokesflag))=1; … … 113 113 md.gridonpattyn=gridonpattyn; 114 114 md.elements_type(find(~stokesflag))=PattynApproximationEnum(); 115 elseif any(macayealflag), %fill with macayeal 116 macayealflag(~stokesflag)=1; 117 gridonmacayeal(md.elements(find(macayealflag),:))=1; 118 md.gridonmacayeal=gridonmacayeal; 119 md.elements_type(find(~stokesflag))=MacAyealApproximationEnum(); 115 120 else %fill with none 116 121 %5: None elements (non Stokes) … … 184 189 matrixelements=ismember(md.elements,find(gridonmacayealstokes)); 185 190 commonelements=sum(matrixelements,2)~=0; 191 plotmodel(md,'data',gridonmacayeal,'view',2,'edgecolor','k') 186 192 commonelements(find(macayealflag))=0; %only one layer: the elements previously in macayeal 187 193 stokesflag(find(commonelements))=0; %these elements are now macayealmacayealelements … … 221 227 if any(stokesflag), 222 228 pos=find(~gridonstokes); 223 if(~any(pattynflag) ),229 if(~any(pattynflag) & ~any(macayealflag)), 224 230 md.vertices_type(pos)=NoneApproximationEnum(); 225 231 end
Note:
See TracChangeset
for help on using the changeset viewer.