Ignore:
Timestamp:
06/26/20 11:03:14 (5 years ago)
Author:
jdquinn
Message:

CHG: MATLAB -> Python translations

File:
1 edited

Legend:

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

    r25058 r25163  
    1515end
    1616
    17 %special case for mesg 2dvertical
     17%special case for mesh 2dvertical
    1818if strcmp(domaintype(md.mesh),'2Dvertical'),
    1919        [x y z elements is2d isplanet] = processmesh(md.mesh,options);
     
    6464
    6565%is it a 2d plot?
    66 if md.mesh.dimension()==2,
     66if md.mesh.dimension()==2 | getfieldvalue(options,'layer',0)>=1,
    6767        is2d=1;
    6868else
    69         if getfieldvalue(options,'layer',0)>=1,
    70                 is2d=1;
    71         else
    72                 is2d=0;
    73         end
     69        is2d=0;
    7470end
    7571
     
    7975                error('processmesh error message: cannot work with 3D meshes for now');
    8076        end
    81         %we modify the mesh temporarily to a 2d mesh from which the 3d mesh was extruded.
     77        %we modify the mesh temporarily to a 2d mesh from which the 3d mesh was extruded
    8278        x=x2d;
    8379        y=y2d;
Note: See TracChangeset for help on using the changeset viewer.