Changeset 24256 for issm/trunk-jpl/src/m/mech/steadystateiceshelftemp.py
- Timestamp:
- 10/18/19 06:52:19 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/mech/steadystateiceshelftemp.py
r24213 r24256 50 50 except FloatingPointError: 51 51 print('steadystateiceshelf warning: overflow encountered in multipy / divide / exp, trying another formulation.') 52 temperature[pos] = -(((Tb[pos] - Ts[pos]) * ki / wi[pos] + Hi[pos] * Tb[pos]) / np.exp(Hi[pos] * wi[pos] / ki) - Hi[pos] * Ts[pos] + (Tb[pos] - Ts[pos]) * ki / wi[pos]) / (Hi[pos] * (1 - np.exp(- 52 temperature[pos] = -(((Tb[pos] - Ts[pos]) * ki / wi[pos] + Hi[pos] * Tb[pos]) / np.exp(Hi[pos] * wi[pos] / ki) - Hi[pos] * Ts[pos] + (Tb[pos] - Ts[pos]) * ki / wi[pos]) / (Hi[pos] * (1 - np.exp(-Hi[pos] * wi[pos] / ki))) 53 53 54 54 #temperature should not be less than surface temp
Note:
See TracChangeset
for help on using the changeset viewer.