Changeset 13085


Ignore:
Timestamp:
08/17/12 14:19:49 (13 years ago)
Author:
seroussi
Message:

BUG: fixed processmesh when using 'layer', use isprop instead of isfields as model is not a structure

File:
1 edited

Legend:

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

    r13009 r13085  
    2020        if ~strcmpi(getfieldvalue(options,'coord','xy'),'latlon'),
    2121                x=md.mesh.x;
    22                 if isfield(md.mesh,'x2d'), x2d=md.mesh.x2d; end
     22                if isprop(md.mesh,'x2d'), x2d=md.mesh.x2d; end
    2323                y=md.mesh.y;
    24                 if isfield(md.mesh,'y2d'), y2d=md.mesh.y2d; end
     24                if isprop(md.mesh,'y2d'), y2d=md.mesh.y2d; end
    2525        else
    2626                x=md.mesh.long;
    27                 %x2d=md.mesh.x2d; this sounds like something that was forgotten
    2827                y=md.mesh.lat;
    29                 %y2d=md.mesh.y2d;
    3028        end
    3129
     
    4038
    4139
    42         if isfield(md.mesh,'elements2d'), elements2d=md.mesh.elements2d; end
     40        if isprop(md.mesh,'elements2d'), elements2d=md.mesh.elements2d; end
    4341        elements=md.mesh.elements;
    4442
Note: See TracChangeset for help on using the changeset viewer.