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

CHG: changing some md.mesh.dimension

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/geometry/slope.py

    r16105 r17559  
    1212
    1313        #load some variables (it is much faster if the variables are loaded from md once for all)
    14         if md.mesh.dimension==2:
     14        if m.strcmp(md.mesh.meshtype(),'2Dhorizontal'):
    1515                numberofelements=md.mesh.numberofelements
    1616                numberofnodes=md.mesh.numberofvertices
     
    3939        s=npy.sqrt(sx**2+sy**2)
    4040
    41         if md.mesh.dimension==3:
     41        if m.strcmp(md.mesh.meshtype(),'3D'):
    4242                sx=project3d(md,'vector',sx,'type','element')
    4343                sy=project3d(md,'vector',sy,'type','element')
Note: See TracChangeset for help on using the changeset viewer.