Changeset 13678


Ignore:
Timestamp:
10/15/12 15:07:53 (12 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixed SquareSheetShelf.py (needed to reshape thickness)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/Par/SquareSheetShelf.py

    r13676 r13678  
    1515ymin=min(md.mesh.y)
    1616ymax=max(md.mesh.y)
    17 md.geometry.thickness=hmax+(hmin-hmax)*(md.mesh.y-ymin)/(ymax-ymin)
     17md.geometry.thickness=hmax+(hmin-hmax)*(md.mesh.y.reshape(-1,1)-ymin)/(ymax-ymin)
    1818md.geometry.bed=-md.materials.rho_ice/md.materials.rho_water*md.geometry.thickness
    1919bed_sheet=-md.materials.rho_ice/md.materials.rho_water*(hmax+(hmin-hmax)*(ymax/2-ymin)/(ymax-ymin))
Note: See TracChangeset for help on using the changeset viewer.