Changeset 2673


Ignore:
Timestamp:
11/19/09 11:40:53 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added check in Thicknesscorrection for ice shelves

Location:
issm/trunk/src/m/classes/public
Files:
2 edited

Legend:

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

    r1232 r2673  
    2525pos_GL=intersect(unique(md.elements(find(md.elementonicesheet),:)),unique(md.elements(find(md.elementoniceshelf),:)));
    2626debug=(length(pos_shelf)>50000);
     27
     28%check that there is a GL
     29if isempty(pos_GL)
     30        error('ThicknessCorrection error message: no grounding line has been detected. Check the model geography');
     31end
    2732
    2833%get distance
  • issm/trunk/src/m/classes/public/plot/plot_section.m

    r2642 r2673  
    178178if (strcmpi(md.type,'2d') | getfieldvalue(options,'view')==2 )
    179179        options=addfielddefault(options,'xlabel','Curvilinear coordinate');
     180        options=addfielddefault(options,'axis','auto');
    180181end
    181182if (strcmpi(md.type,'3d') & getfieldvalue(options,'view')==2 )
    182183        options=addfielddefault(options,'ylabel','z');
    183         options=addfielddefault(options,'axis','auto');
    184184end
    185185applyoptions(md,[],options);
Note: See TracChangeset for help on using the changeset viewer.