Ignore:
Timestamp:
Aug 26, 2024, 6:11:23 PM (16 months ago)
Author:
afalco
Message:

Pluto PCM: Added vertical mixing in no gcm, ch4/co surf, no_n2frost.
AF

Location:
trunk/LMDZ.PLUTO/libf/phypluto
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.PLUTO/libf/phypluto/condense_n2.F90

    r3390 r3421  
    116116  real zdtlatent (klon,klev)
    117117  real zdt (klon,klev)
    118   REAL albediceF(klon)
     118!  REAL albediceF(klon)
    119119!   SAVE albediceF
    120120  INTEGER nsubtimestep,itsub    !number of subtimestep when calling vl1d
     
    130130  REAL globzplevnew
    131131
    132   REAL vmrn2(klon)
    133 !   SAVE vmrn2
     132  real,dimension(:),save,allocatable :: vmrn2
     133!$OMP THREADPRIVATE(vmrn2)
    134134  REAL stephan
    135135  DATA stephan/5.67e-08/  ! Stephan Boltzman constant
     
    179179     ENDIF
    180180
     181     ALLOCATE(vmrn2(klon))
    181182     vmrn2(:) = 1.
    182183     !IF (ch4lag) then
     
    187188     !   ENDDO
    188189     !ENDIF
    189      !IF (no_n2frost) then
    190      !   DO ig=1,klon
    191      !      if (picen2(ig).eq.0.) then
    192      !         vmrn2(ig) = 1.e-15
    193      !      endif
    194      !   ENDDO
    195      !ENDIF
     190     IF (no_n2frost) then
     191        DO ig=1,klon
     192           if (picen2(ig).eq.0.) then
     193              vmrn2(ig) = 1.e-15
     194           endif
     195        ENDDO
     196     ENDIF
    196197     firstcall=.false.
    197198  ENDIF
     
    344345   DO ig=1,klon
    345346     ! forecast of frost temperature ztcondsol
    346      ztcondsol(ig) = tcond_n2(zplev(ig),zqn2(ig,1))
    347      !ztcondsol(ig) = tcond_n2(zplev(ig),vmrn2(ig))
     347     !ztcondsol(ig) = tcond_n2(zplev(ig),zqn2(ig,1))
     348     ztcondsol(ig) = tcond_n2(zplev(ig),vmrn2(ig))
    348349
    349350!     Loop over where we have condensation / sublimation
     
    898899   return
    899900   end  subroutine vl1d
    900 
  • trunk/LMDZ.PLUTO/libf/phypluto/physiq_mod.F90

    r3412 r3421  
    3333      USE tracer_h, only: noms, mmol, radius, rho_q, qext, &
    3434                          igcm_n2,igcm_ch4_gas,igcm_ch4_ice,igcm_haze,&
    35                           igcm_co_gas,igcm_co_ice,igcm_prec_haze,lw_n2,&
     35                          igcm_co_gas,igcm_co_ice,igcm_prec_haze,lw_n2,lw_ch4,lw_co,&
    3636                          alpha_lift, alpha_devil, qextrhor, &
    3737                          nesp, is_chim, is_condensable,constants_epsi_generic
     
    5555                              n2cond,nearn2cond,noseason_day,conservn2, &
    5656                              convergeps,kbo,triton,paleo,paleoyears,glaflow, &
    57                               carbox, methane,&
     57                              carbox, methane,condmetsurf,condcosurf,&
    5858                              oldplutovdifc,oldplutocorrk,oldplutosedim, &
    5959                              aerohaze,haze_proffix,source_haze, tsurfmax, &
     
    12481248
    12491249         ! if(.not.newtonian)then
    1250             zdtsurf(1:ngrid) = zdtsurf(1:ngrid) + (fluxrad(1:ngrid) + fluxgrd(1:ngrid))/capcal(1:ngrid)
     1250         zdtsurf(1:ngrid) = zdtsurf(1:ngrid) + (fluxrad(1:ngrid) + fluxgrd(1:ngrid))/capcal(1:ngrid)
     1251
     1252!        ------------------------------------------------------------------
     1253!        Methane surface sublimation and condensation in fast model (nogcm)
     1254!        ------------------------------------------------------------------
     1255         if ((methane).and.(fast).and.condmetsurf) THEN
     1256
     1257            call ch4surf(ngrid,nlayer,nq,ptimestep, &
     1258               tsurf,zdtsurf,pplev,pdpsrf,pq,pdq,qsurf,dqsurf, &
     1259               zdqch4fast,zdqsch4fast)
     1260
     1261            dqsurf(1:ngrid,igcm_ch4_ice)= dqsurf(1:ngrid,igcm_ch4_ice) + &
     1262                                         zdqsch4fast(1:ngrid)
     1263            pdq(1:ngrid,1,igcm_ch4_gas)= pdq(1:ngrid,1,igcm_ch4_gas) + &
     1264                                         zdqch4fast(1:ngrid)
     1265            zdtsurf(1:ngrid)=zdtsurf(1:ngrid)+lw_ch4*zdqsch4fast(1:ngrid)/capcal(1:ngrid)
     1266            end if
     1267!        ------------------------------------------------------------------
     1268!        CO surface sublimation and condensation in fast model (nogcm)
     1269!        ------------------------------------------------------------------
     1270         if ((carbox).and.(fast).and.condcosurf) THEN
     1271
     1272            call cosurf(ngrid,nlayer,nq,ptimestep, &
     1273               tsurf,pplev,pdpsrf,pq,pdq,qsurf,dqsurf, &
     1274               zdqcofast,zdqscofast)
     1275
     1276            dqsurf(1:ngrid,igcm_co_ice)= dqsurf(1:ngrid,igcm_co_ice) + &
     1277                                         zdqscofast(1:ngrid)
     1278            pdq(1:ngrid,1,igcm_co_gas)= pdq(1:ngrid,1,igcm_co_gas) + &
     1279                                        zdqcofast(1:ngrid)
     1280            zdtsurf(1:ngrid)=zdtsurf(1:ngrid)+lw_co*zdqscofast(1:ngrid)/capcal(1:ngrid)
     1281         end if
     1282
    12511283
    12521284      endif ! end of 'calldifv'
Note: See TracChangeset for help on using the changeset viewer.