Changeset 20987


Ignore:
Timestamp:
07/22/16 15:51:02 (9 years ago)
Author:
Mathieu Morlighem
Message:

CHG: use [:,0] rather than reshape for pressure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/initialization.py

    r20944 r20987  
    6262
    6363                #Lithostatic pressure by default
    64                 self.pressure=md.constants.g*md.materials.rho_ice*(md.geometry.surface-md.mesh.z.reshape(-1,1))
     64                self.pressure=md.constants.g*md.materials.rho_ice*(md.geometry.surface[:,0]-md.mesh.z)
    6565                return self
    6666        #}}}
Note: See TracChangeset for help on using the changeset viewer.