Changeset 17840


Ignore:
Timestamp:
04/24/14 19:15:13 (11 years ago)
Author:
cborstad
Message:

BUG: don't collapse 2D arrays if they have more than once column

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/extrusion/project2d.py

    r17725 r17840  
    3434
    3535        vec2d=False
    36         if value.ndim==2:
     36        if value.ndim==2 and value.shape[1]==1:
    3737                value=value.reshape(-1,)
    3838                vec2d=True
    39        
     39
    4040        if value.size==1:
    4141                projection_value=value[(layer-1)*md3d.mesh.numberofelements2d:layer*md3d.mesh.numberofelements2d]
Note: See TracChangeset for help on using the changeset viewer.