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/test/NightlyRun/test2010.py

    r24214 r24256  
    2121
    2222md.slr.deltathickness = np.zeros((md.mesh.numberofelements, ))
    23 pos = np.intersect1d(np.array(np.where(late < - 75)), np.array(np.where(longe > 0)))
     23pos = np.intersect1d(np.array(np.where(late < -75)), np.array(np.where(longe > 0)))
    2424#python does not include last element in array slices, (6:7) - > [5:7]
    2525md.slr.deltathickness[pos[5:7]] = - 1
     
    110110#areas = GetAreasSphericalTria(md.mesh.elements, md.mesh.lat, md.mesh.long, rad_e)
    111111#lat = late * pi / 180 lon = longe * pi / 180
    112 #moi_xz = sum(- md.materials.rho_freshwater. * md.slr.deltathickness. * areas. * rad_e^2. * sin(lat). * cos(lat). * cos(lon))
    113 #moi_yz = sum(- md.materials.rho_freshwater. * md.slr.deltathickness. * areas. * rad_e^2. * sin(lat). * cos(lat). * sin(lon))
     112#moi_xz = sum(-md.materials.rho_freshwater. * md.slr.deltathickness. * areas. * rad_e^2. * sin(lat). * cos(lat). * cos(lon))
     113#moi_yz = sum(-md.materials.rho_freshwater. * md.slr.deltathickness. * areas. * rad_e^2. * sin(lat). * cos(lat). * sin(lon))
    114114# }}}
    115115
Note: See TracChangeset for help on using the changeset viewer.