Changeset 2051 for trunk


Ignore:
Timestamp:
Dec 13, 2018, 2:13:43 PM (6 years ago)
Author:
jleconte
Message:

12/12/2018 == JL

  • Correct a bug from commit 2032 in callcorrk: automatic arrays must be allocated

only if they haven't been before (callcorrk is called twice in physiq when cloud cover is not uniform).

Location:
trunk/LMDZ.GENERIC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/README

    r2033 r2051  
    14091409  but still used, probably for nothing since removing them leads to no change
    14101410  in results. Possibly to revisit and further clean up later.
     1411
     1412== 12/12/2018 == JL
     1413- Correct a bug from commit 2032 in callcorrk: automatic arrays must be allocated
     1414only if they haven't been before (callcorrk is called twice in physiq when cloud cover is not uniform).
     1415 
  • trunk/LMDZ.GENERIC/libf/phystd/callcorrk.F90

    r2032 r2051  
    248248         ! now that L_NGAUSS has been initialized (by sugas_corrk)
    249249         ! allocate related arrays
    250          ALLOCATE(dtaui(L_NLAYRAD,L_NSPECTI,L_NGAUSS))
    251          ALLOCATE(dtauv(L_NLAYRAD,L_NSPECTV,L_NGAUSS))
    252          ALLOCATE(cosbv(L_NLAYRAD,L_NSPECTV,L_NGAUSS))
    253          ALLOCATE(cosbi(L_NLAYRAD,L_NSPECTI,L_NGAUSS))
    254          ALLOCATE(wbari(L_NLAYRAD,L_NSPECTI,L_NGAUSS))
    255          ALLOCATE(wbarv(L_NLAYRAD,L_NSPECTV,L_NGAUSS))
    256          ALLOCATE(tauv(L_NLEVRAD,L_NSPECTV,L_NGAUSS))
    257          ALLOCATE(taucumv(L_LEVELS,L_NSPECTV,L_NGAUSS))
    258          ALLOCATE(taucumi(L_LEVELS,L_NSPECTI,L_NGAUSS))
    259          ALLOCATE(taugsurf(L_NSPECTV,L_NGAUSS-1))
    260          ALLOCATE(taugsurfi(L_NSPECTI,L_NGAUSS-1))
     250         if(.not.allocated(dtaui)) ALLOCATE(dtaui(L_NLAYRAD,L_NSPECTI,L_NGAUSS))
     251         if(.not.allocated(dtauv)) ALLOCATE(dtauv(L_NLAYRAD,L_NSPECTV,L_NGAUSS))
     252         if(.not.allocated(cosbv)) ALLOCATE(cosbv(L_NLAYRAD,L_NSPECTV,L_NGAUSS))
     253         if(.not.allocated(cosbi)) ALLOCATE(cosbi(L_NLAYRAD,L_NSPECTI,L_NGAUSS))
     254         if(.not.allocated(wbari)) ALLOCATE(wbari(L_NLAYRAD,L_NSPECTI,L_NGAUSS))
     255         if(.not.allocated(wbarv)) ALLOCATE(wbarv(L_NLAYRAD,L_NSPECTV,L_NGAUSS))
     256         if(.not.allocated(tauv)) ALLOCATE(tauv(L_NLEVRAD,L_NSPECTV,L_NGAUSS))
     257         if(.not.allocated(taucumv)) ALLOCATE(taucumv(L_LEVELS,L_NSPECTV,L_NGAUSS))
     258         if(.not.allocated(taucumi)) ALLOCATE(taucumi(L_LEVELS,L_NSPECTI,L_NGAUSS))
     259         if(.not.allocated(taugsurf)) ALLOCATE(taugsurf(L_NSPECTV,L_NGAUSS-1))
     260         if(.not.allocated(taugsurfi)) ALLOCATE(taugsurfi(L_NSPECTI,L_NGAUSS-1))
    261261
    262262         if((igcm_h2o_vap.eq.0) .and. varactive)then
Note: See TracChangeset for help on using the changeset viewer.