source: issm/oecreview/Archive/18296-19100/ISSM-18319-18320.diff

Last change on this file was 19102, checked in by Mathieu Morlighem, 10 years ago

NEW: added 18296-19100

File size: 689 bytes
RevLine 
[19102]1Index: ../trunk-jpl/src/m/plot/plot_section.m
2===================================================================
3--- ../trunk-jpl/src/m/plot/plot_section.m (revision 18319)
4+++ ../trunk-jpl/src/m/plot/plot_section.m (revision 18320)
5@@ -52,7 +52,11 @@
6 if exist(options,'resolution'),
7 resolution=getfieldvalue(options,'resolution');
8 else %Default resolution
9- resolution=[1000 10*md.mesh.numberoflayers];
10+ if is2d,
11+ resolution=[1000 1];
12+ else
13+ resolution=[1000 10*md.mesh.numberoflayers];
14+ end
15 disp(['plot_section warning: no resolution specified, use default resolution: [horizontal_resolution vertical_resolution]=[' num2str(resolution) ']']);
16 end
17
Note: See TracBrowser for help on using the repository browser.