Changeset 7328
- Timestamp:
- 02/04/11 08:45:43 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/model/geography.m
r7314 r7328 33 33 34 34 %Assign elementoniceshelf, elementonicesheet, gridonicesheet and gridoniceshelf. Only change at your own peril! This is synchronized heavily with the GroundingLineMigration module. {{{1 35 36 35 elementoniceshelf=FlagElements(md,iceshelfname); 37 36 elementonicesheet=FlagElements(md,icesheetname); … … 39 38 %Because icesheet grids and elements can be included into an iceshelf, we need to update. Remember, all the previous 40 39 %arrays come from domain outlines that can intersect one another: 41 gridoniceshelf=zeros(md.numberofgrids,1);42 gridonicesheet=zeros(md.numberofgrids,1);43 40 elementoniceshelf=double((elementoniceshelf & ~elementonicesheet)); 44 41 elementonicesheet=double(~elementoniceshelf); 45 42 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. 44 gridoniceshelf=zeros(md.numberofgrids,1); 45 gridonicesheet=zeros(md.numberofgrids,1); 47 46 gridonicesheet(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 47 gridoniceshelf(find(~gridonicesheet))=1; 57 48 %}}} 58 49
Note:
See TracChangeset
for help on using the changeset viewer.