Changeset 1328 for trunk/LMDZ.GENERIC


Ignore:
Timestamp:
Aug 21, 2014, 5:32:24 PM (10 years ago)
Author:
sglmd
Message:

minor change to have a more consistent pressure interpolation for uneven pressure grids

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/sugas_corrk.F90

    r1315 r1328  
    220220      pgasmax = 10.0**pgasref(L_NPREF)
    221221
    222       ! interpolate to finer grid
     222      ! interpolate to finer grid, adapted to uneven grids
    223223      do n=1,L_NPREF-1
    224224         do m=1,5
    225             pfgasref((n-1)*5+m) = pgasref(n)+(m-1)*0.2
     225            pfgasref((n-1)*5+m) = pgasref(n)+(m-1)*(pgasref(n+1) - pgasref(n))/5.
    226226         end do
    227227      end do
    228228      pfgasref(L_PINT) = pgasref(L_NPREF)
    229       ! Warning, pfgasref needs generalisation to uneven grids!
    230229
    231230!-----------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.