Changeset 7314
- Timestamp:
- 02/03/11 16:21:53 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/model/geography.m
r7083 r7314 32 32 elements=md.elements; 33 33 34 %Assign elementoniceshelf, elementonicesheet, gridonicesheet and gridoniceshelf. Only change at your own peril! This is synchronized heavily with the GroundingLineMigration module. {{{1 35 34 36 elementoniceshelf=FlagElements(md,iceshelfname); 35 37 elementonicesheet=FlagElements(md,icesheetname); … … 41 43 elementoniceshelf=double((elementoniceshelf & ~elementonicesheet)); 42 44 elementonicesheet=double(~elementoniceshelf); 45 43 46 %the order here is important. we choose gridoniceshelf as default on the grounding line. 44 47 gridonicesheet(md.elements(find(elementonicesheet),:))=1; 45 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 57 %}}} 46 58 47 59 %Return:
Note:
See TracChangeset
for help on using the changeset viewer.