Changeset 7328


Ignore:
Timestamp:
02/04/11 08:45:43 (14 years ago)
Author:
seroussi
Message:

WARNING!
We simplified geography. The previous version was changing the position of the grounding line by one element.
New philosophy:

flag elementonicesheet
all vertices that belong to an element on ice sheet are on sheet ONLY
others are on ice shelf.
-> vertices ar the grounding line are ice sheet

File:
1 edited

Legend:

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

    r7314 r7328  
    3333
    3434%Assign elementoniceshelf, elementonicesheet, gridonicesheet and gridoniceshelf. Only change at your own peril! This is synchronized heavily with the GroundingLineMigration module. {{{1
    35 
    3635elementoniceshelf=FlagElements(md,iceshelfname);
    3736elementonicesheet=FlagElements(md,icesheetname);
     
    3938%Because icesheet grids and elements can be included into an iceshelf, we need to update. Remember, all the previous
    4039%arrays come from domain outlines that can intersect one another:
    41 gridoniceshelf=zeros(md.numberofgrids,1);
    42 gridonicesheet=zeros(md.numberofgrids,1);
    4340elementoniceshelf=double((elementoniceshelf & ~elementonicesheet));
    4441elementonicesheet=double(~elementoniceshelf);
    4542
    46 %the order here is important. we choose gridoniceshelf as default on the grounding line.
     43%the order here is important. we choose gridonicesheet as default on the grounding line.
     44gridoniceshelf=zeros(md.numberofgrids,1);
     45gridonicesheet=zeros(md.numberofgrids,1);
    4746gridonicesheet(md.elements(find(elementonicesheet),:))=1;
    48 gridoniceshelf(md.elements(find(elementoniceshelf),:))=1;
    49 
    50 %gridoniceshelf exclusively not on ice sheet:
    51 gridonicesheet(md.elements(find(elementoniceshelf),:))=0;
    52 
    53 %finally, an ice sheet that has one node on an ice shelf, becomes an iceshelf:
    54 elementoniceshelf=double(sum(gridoniceshelf(elements),2)>0);
    55 pos=find(elementoniceshelf); elementonicesheet(pos)=0;
    56 
     47gridoniceshelf(find(~gridonicesheet))=1;
    5748%}}}
    5849
Note: See TracChangeset for help on using the changeset viewer.