Ignore:
Timestamp:
10/18/19 06:52:19 (5 years ago)
Author:
bdef
Message:

BUG: fixing some negative number syntax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/mech/steadystateiceshelftemp.py

    r24213 r24256  
    5050    except FloatingPointError:
    5151        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(- Hi[pos] * wi[pos] / ki)))
     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)))
    5353
    5454    #temperature should not be less than surface temp
Note: See TracChangeset for help on using the changeset viewer.