Changeset 7314


Ignore:
Timestamp:
02/03/11 16:21:53 (14 years ago)
Author:
Eric.Larour
Message:

improved determination of ice shelf and ice sheet related fields. do not touch under any circunstance...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/model/geography.m

    r7083 r7314  
    3232elements=md.elements;
    3333
     34%Assign elementoniceshelf, elementonicesheet, gridonicesheet and gridoniceshelf. Only change at your own peril! This is synchronized heavily with the GroundingLineMigration module. {{{1
     35
    3436elementoniceshelf=FlagElements(md,iceshelfname);
    3537elementonicesheet=FlagElements(md,icesheetname);
     
    4143elementoniceshelf=double((elementoniceshelf & ~elementonicesheet));
    4244elementonicesheet=double(~elementoniceshelf);
     45
    4346%the order here is important. we choose gridoniceshelf as default on the grounding line.
    4447gridonicesheet(md.elements(find(elementonicesheet),:))=1;
    4548gridoniceshelf(md.elements(find(elementoniceshelf),:))=1;
     49
     50%gridoniceshelf exclusively not on ice sheet:
     51gridonicesheet(md.elements(find(elementoniceshelf),:))=0;
     52
     53%finally, an ice sheet that has one node on an ice shelf, becomes an iceshelf:
     54elementoniceshelf=double(sum(gridoniceshelf(elements),2)>0);
     55pos=find(elementoniceshelf); elementonicesheet(pos)=0;
     56
     57%}}}
    4658
    4759%Return:
Note: See TracChangeset for help on using the changeset viewer.