Changeset 1035 for trunk/LMDZ.MARS/libf


Ignore:
Timestamp:
Sep 11, 2013, 12:23:22 PM (12 years ago)
Author:
emillour
Message:

Mars GCM:

  • Bug fix in vdifc.F: in some cases, some elements of pdqsdif() were not given any value. In all cases, it is safer to start with clean initialization of output tendencies to zero.
  • Bug fix in concentration.F: error in cpi() and aki() indexes led to wrong computation of atmospheric conductivity and specific heat.

EM

Location:
trunk/LMDZ.MARS/libf
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/aeronomars/concentrations.F

    r635 r1035  
    271271               iq = niq(i)
    272272               ni(iq) = ntot*zq(ig,l,iq)*mmean(ig,l)/mmol(iq)
    273                cpnew(ig,l) = cpnew(ig,l) + ni(iq)*cpi(iq)
    274                akknew(ig,l) = akknew(ig,l) + ni(iq)*aki(iq)
     273               cpnew(ig,l) = cpnew(ig,l) + ni(iq)*cpi(i)
     274               akknew(ig,l) = akknew(ig,l) + ni(iq)*aki(i)
    275275            end do
    276276            cpnew(ig,l) = cpnew(ig,l)/ntot
  • trunk/LMDZ.MARS/libf/phymars/vdifc.F

    r884 r1035  
    206206
    207207      nlev=nlay+1
     208
     209      ! initialize output tendencies to zero:
     210      pdudif(1:ngrid,1:nlay)=0
     211      pdvdif(1:ngrid,1:nlay)=0
     212      pdhdif(1:ngrid,1:nlay)=0
     213      pdtsrf(1:ngrid)=0
     214      pdqdif(1:ngrid,1:nlay,1:nq)=0
     215      pdqsdif(1:ngrid,1:nq)=0
    208216
    209217c    ** calcul de rho*dz et dt*rho/dz=dt*rho**2 g/dp
Note: See TracChangeset for help on using the changeset viewer.