Changeset 5492


Ignore:
Timestamp:
08/23/10 08:29:43 (15 years ago)
Author:
Mathieu Morlighem
Message:

Fixed modelextract for Stokes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/modelextract.m

    r5451 r5492  
    219219        end
    220220
    221         %Recreate border stokes
    222         if md1.isstokes,
    223                 pos=find(sum(md2.spcvelocity(:,1:3),2));                 %find all the grids on the boundary of the domain without icefront
    224                 md2.gridonstokes(pos)=0;                               %we have to constrain all the boundary of the domain without icefront
    225                 stokes_elements=find(md2.elements_type(:,2)==StokesApproximationEnum()); %find the elements on the stokes domain
    226                 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 borderstokes
    228                 md2.borderstokes=borderflags-md2.gridonstokes;   %remove stokes grids from this list
    229         end
    230 
    231221        %Diagnostic
    232222        if ~isnan(md2.pressureload)
Note: See TracChangeset for help on using the changeset viewer.