Changeset 1400
- Timestamp:
- 07/28/09 16:06:09 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/modelextract2.m
r1370 r1400 212 212 end 213 213 214 %Recreate border stokes 215 if md1.isstokes, 216 pos=find(md2.gridondirichlet_diag); %find all the grids on the boundary of the domain without icefront 217 md2.gridonstokes(pos)=0; %we have to constrain all the boundary of the domain without icefront 218 stokes_elements=find(md2.elements_type(:,2)==StokesEnum()); %find the elements on the stokes domain 219 borderflags=zeros(numberofgrids2,1); 220 borderflags(md2.elements(stokes_elements,:))=1; %find all the grids of the elements on stokes domain, ie stokes grids and borderstokes 221 md2.borderstokes=borderflags-md2.gridonstokes; %remove stokes grids from this list 222 end 223 214 224 %Diagnostic 215 225 if ~isnan(md2.segmentonneumann_diag)
Note:
See TracChangeset
for help on using the changeset viewer.