Ignore:
Timestamp:
Jan 30, 2026, 12:40:55 PM (4 weeks ago)
Author:
emillour
Message:

Mars PCM:
Cleanup and correction around thermospheric processes: ensure that the
tendencies from previous processes are included before being sent to
the next process (was not the case for conduction).
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/physiq_mod.F

    r4029 r4035  
    21302130c     ------------------
    21312131
    2132 !#ifndef MESOSCALE
    21332132c        --------------
    21342133c        photochemistry :
     
    22002199
    22012200         END IF  ! of IF (photochem)
    2202 !#endif
    2203 
    2204 
    2205 !#ifndef MESOSCALE
     2201
     2202
    22062203c-----------------------------------------------------------------------
    22072204c   10. THERMOSPHERE CALCULATION
     
    22102207      if (callthermos) then
    22112208        call thermosphere(ngrid,nlayer,nq,zplev,zplay,dist_sol,
    2212      $     mu0,ptimestep,ptime,zday,tsurf_meshavg,zzlev,zzlay,
    2213      &     pt,pq,pu,pv,pdt,pdq,
    2214      $     zdteuv,zdtconduc,zdumolvis,zdvmolvis,zdqmoldiff,
    2215      $     PhiEscH,PhiEscH2,PhiEscD)
    2216 
    2217         DO l=1,nlayer
    2218           DO ig=1,ngrid
    2219             dtrad(ig,l)=dtrad(ig,l)+zdteuv(ig,l)
    2220             pdt(ig,l)=pdt(ig,l)+zdtconduc(ig,l)+zdteuv(ig,l)
    2221             pdv(ig,l)=pdv(ig,l)+zdvmolvis(ig,l)
    2222             pdu(ig,l)=pdu(ig,l)+zdumolvis(ig,l)
    2223             DO iq=1, nq
    2224               pdq(ig,l,iq)=pdq(ig,l,iq)+zdqmoldiff(ig,l,iq)
    2225             ENDDO
    2226           ENDDO
    2227         ENDDO
     2209     &     mu0,ptimestep,zday,tsurf_meshavg,zzlev,zzlay,
     2210     &     pt,pq,pu,pv,pdt,pdq,pdu,pdv,
     2211     &     zdteuv,zdtconduc,zdumolvis,zdvmolvis,zdqmoldiff,
     2212     &     PhiEscH,PhiEscH2,PhiEscD)
     2213       
     2214        ! tendencies zdteuv,zdtconduc,zdumolvis,zdvmolvis,zdqmoldiff
     2215        ! already included in pdt,pdu,pdv,pdq by thermosphere
     2216       
     2217        dtrad(1:ngrid,1:nlayer)=dtrad(1:ngrid,1:nlayer)
     2218     &                               +zdteuv(1:ngrid,1:nlayer)
    22282219
    22292220      endif ! of if (callthermos)
    2230 !#endif
    22312221
    22322222c-----------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.