Changeset 1400


Ignore:
Timestamp:
07/28/09 16:06:09 (16 years ago)
Author:
Mathieu Morlighem
Message:

fixed modelextract2 for Stokes (Yessa)

File:
1 edited

Legend:

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

    r1370 r1400  
    212212        end
    213213
     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
    214224        %Diagnostic
    215225        if ~isnan(md2.segmentonneumann_diag)
Note: See TracChangeset for help on using the changeset viewer.