source:
issm/oecreview/Archive/17802-17983/ISSM-17863-17864.diff@
17986
Last change on this file since 17986 was 17986, checked in by , 11 years ago | |
---|---|
File size: 890 bytes |
-
../trunk-jpl/src/m/materials/paterson.py
15 15 raise RuntimeError("input temperature should be in Kelvin (positive)") 16 16 17 17 if numpy.ndim(temperature)==2: 18 T = temperature.reshape(-1,)-273.15 18 #T = temperature.reshape(-1,)-273.15 19 T = temperature.flatten()-273.15 20 elif isinstance(temperature,float) or isinstance(temperature,int): 21 T = numpy.array([temperature])-273.15 19 22 else: 20 T = numpy.array([temperature])-273.1523 T = temperature-273.15 21 24 22 25 #The routine below is equivalent to: 23 26 … … 70 73 #Now make sure that rigidity is positive 71 74 pos=numpy.nonzero(rigidity<0)[0] 72 75 if len(pos): 73 rigidity[pos]=1 **676 rigidity[pos]=1.e6 74 77 75 78 return rigidity 76 79
Note:
See TracBrowser
for help on using the repository browser.