Changeset 5492
- Timestamp:
- 08/23/10 08:29:43 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/modelextract.m
r5451 r5492 219 219 end 220 220 221 %Recreate border stokes222 if md1.isstokes,223 pos=find(sum(md2.spcvelocity(:,1:3),2)); %find all the grids on the boundary of the domain without icefront224 md2.gridonstokes(pos)=0; %we have to constrain all the boundary of the domain without icefront225 stokes_elements=find(md2.elements_type(:,2)==StokesApproximationEnum()); %find the elements on the stokes domain226 borderflags=zeros(numberofgrids2,1);227 borderflags(md2.elements(stokes_elements,:))=1; %find all the grids of the elements on stokes domain, ie stokes grids and borderstokes228 md2.borderstokes=borderflags-md2.gridonstokes; %remove stokes grids from this list229 end230 231 221 %Diagnostic 232 222 if ~isnan(md2.pressureload)
Note:
See TracChangeset
for help on using the changeset viewer.