Changeset 2596 in lmdz_wrf


Ignore:
Timestamp:
Jun 6, 2019, 9:34:22 PM (5 years ago)
Author:
lfita
Message:

Fixing right division to have float values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r2595 r2596  
    1445914459        pti = [vertices[iv,0], vertices[iv,1]]
    1446014460        pte = [vertices[iv+1,0], vertices[iv+1,1]]
    14461         ddx = (pte[0]-pti[0])/(Nint-1)
    14462         ddy = (pte[1]-pti[1])/(Nint-1)
     14461        ddx = (pte[0]-pti[0])/(Nint-1.)
     14462        ddy = (pte[1]-pti[1])/(Nint-1.)
    1446314463        if np.abs(ddx) < 1.e-7: ddx = 0.
    1446414464        if np.abs(ddy) < 1.e-7: ddy = 0.
Note: See TracChangeset for help on using the changeset viewer.