Changeset 3013 for trunk


Ignore:
Timestamp:
Jul 24, 2023, 10:40:53 PM (16 months ago)
Author:
llange
Message:

MARS PCM
CO2 condens: Fixing bug introduced in r2977: as the cooling of the air before condensing is now done in the surface condensation loop, the boundary conditions for the VL scheme must be changed in order to avoid duplicating the cooling.

Also fixed a bug in surfini.F (2892): qsurf is now ngrid x nq x nslope: I added the dimension nslope.

LL

Location:
trunk/LMDZ.MARS/libf/phymars
Files:
3 edited

Legend:

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

    r2999 r3013  
    647647c           Value transfert at the surface interface when condensation
    648648c           sublimation:
    649             ztm(1) = ztcondsol(ig)
     649            if (zmflux(1).lt.0) then
     650c               Surface condensation
     651                ztm(1) = ztc(1)
     652            else
     653c               Surface sublimation:
     654               ztm(1) =  ztcondsol(ig)
     655            endif
    650656            zum(1) = 0 
    651657            zvm(1) = 0 
  • trunk/LMDZ.MARS/libf/phymars/physiq_mod.F

    r3012 r3013  
    694694c        Initialize albedo and orbital calculation
    695695c        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    696          CALL surfini(ngrid,qsurf)
     696         CALL surfini(ngrid,nslope,qsurf)
    697697         CALL iniorbit(aphelie,periheli,year_day,peri_day,obliquit)
    698698c        initialize soil
  • trunk/LMDZ.MARS/libf/phymars/surfini.F

    r2892 r3013  
    1       SUBROUTINE surfini(ngrid,qsurf)
     1      SUBROUTINE surfini(ngrid,nslope,qsurf)
    22
    33      USE ioipsl_getin_p_mod, ONLY : getin_p
     
    2828
    2929      integer,intent(in) :: ngrid ! number of atmospheric columns
    30       real,intent(inout) :: qsurf(ngrid,nqmx) ! tracer on surface (kg/m2)
    31 
    32       INTEGER ig,icap,iq,alternate
     30      integer,intent(in) :: nslope ! number of sub-grid surfaces
     31      real,intent(inout) :: qsurf(ngrid,nqmx,nslope) ! tracer on surface (kg/m2)
     32
     33      INTEGER ig,icap,iq,alternate,islope
    3334      REAL icedryness ! ice dryness
    3435     
     
    7879         !write(*,*) "all qsurf to zero. dirty."
    7980         do iq=1,nqmx
    80          qsurf(ig,iq)=0.  !! on jette les inputs GCM
     81            do islope = 1,nslope
     82              qsurf(ig,iq,islope)=0.  !! on jette les inputs GCM
    8183                          !! on regle juste watercaptag
    8284                          !! il faudrait garder les inputs GCM
    8385                          !! si elles sont consequentes
     86            enddo
    8487         enddo
    8588         if ( ( latitude(ig)*180./pi .gt. 70. ) .and.
Note: See TracChangeset for help on using the changeset viewer.