Changeset 2408 for trunk


Ignore:
Timestamp:
Sep 10, 2020, 3:33:47 PM (4 years ago)
Author:
jvatant
Message:

Titan GCM : Fix a bug in corrk-recombining scheme optimisation.
--JVO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.TITAN/libf/phytitan/callcorrk.F90

    r2379 r2408  
    230230              endif
    231231              if ( usept(ip,1) ) then ! if not all false
    232                 tmin = minval(pt(ig,min(inflay(ip+1)+1,nlayer):max(inflay(ip),1)))
    233                 tmax = maxval(pt(ig,min(inflay(ip+1)+1,nlayer):max(inflay(ip),1)))
     232                tmin = minval(pt(ig,max(inflay(ip+1)+1,1):min(inflay(ip)+1,nlayer)))
     233                tmax = maxval(pt(ig,max(inflay(ip+1)+1,1):min(inflay(ip)+1,nlayer)))
    234234                do it=1,L_NTREF-1
    235235                  if ( tgasref(it+1) .lt. tmin ) then
Note: See TracChangeset for help on using the changeset viewer.