Ignore:
Timestamp:
03/27/14 08:53:53 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: changing some md.mesh.dimension

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/plot/plot_section.m

    r16953 r17559  
    203203%apply options
    204204options=addfielddefault(options,'title','Section value');
    205 if (md.mesh.dimension==2)
     205if (strcmp(meshtype(md.mesh),'2Dhorizontal'))
    206206        options=addfielddefault(options,'colorbar',0);
    207207end
    208 if ((md.mesh.dimension==2) | getfieldvalue(options,'view')==2 )
     208if ((strcmp(meshtype(md.mesh),'2Dhorizontal')) | getfieldvalue(options,'view')==2 )
    209209        options=addfielddefault(options,'xlabel','Curvilinear coordinate');
    210210        options=addfielddefault(options,'axis','auto');
    211211end
    212 if (md.mesh.dimension==3 & getfieldvalue(options,'view')==2 )
     212if (strcmp(meshtype(md.mesh),'3D') & getfieldvalue(options,'view')==2 )
    213213        options=addfielddefault(options,'ylabel','z');
    214214end
Note: See TracChangeset for help on using the changeset viewer.