Changeset 2255


Ignore:
Timestamp:
Mar 10, 2020, 5:01:24 PM (5 years ago)
Author:
abierjon
Message:

Mars GCM:
Bug fix in topmons_mod : the array rhobarz(ig,l) (density at interlayer levels) had only nlayer allocated instead of nlayer+1 (caused issues in calculating the topdust detrainment at the top of the model)
AB

Location:
trunk/LMDZ.MARS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/README

    r2252 r2255  
    28752875== 06/03/2020 == AB
    28762876Bug fix following r2248 in aeropacity_mod and topmons_mod : since dsodust, dsords and dsotop are diagnostic physiq_mod variables, we don't want them to be reinitialized at each call of aeropacity_mod and topmons_mod, but we initialize them once and for all at the beginning of physiq_mod instead.
     2877
     2878== 10/03/2020 == AB
     2879Bug fix in topmons_mod : the array rhobarz(ig,l) (density at interlayer levels) had only nlayer allocated instead of nlayer+1 (caused issues in calculating the topdust detrainment at the top of the model)
  • trunk/LMDZ.MARS/libf/phymars/topmons_mod.F90

    r2252 r2255  
    156156!     Entrainment
    157157      REAL entr(ngrid)                                             ! entrainment flux
    158       REAL rho(ngrid,nlayer),rhobarz(ngrid,nlayer)                 ! density, density at the levels
     158      REAL rho(ngrid,nlayer),rhobarz(ngrid,nlayer+1)                 ! density, density at the levels
    159159      REAL masse(ngrid,nlayer)                                     ! air mass
    160160      REAL masse_pbl(ngrid)                                        ! total air mass within the PBL
     
    458458          rhobarz(:,l)=pplev(:,l)/(r*0.5*(pt(:,l)+pt(:,l-1)))
    459459        ENDDO
     460        rhobarz(:,nlayer+1)=0. !top of the model
    460461        !! Mass computation
    461462        DO l=1,nlayer
Note: See TracChangeset for help on using the changeset viewer.