Changeset 2378 for trunk


Ignore:
Timestamp:
Jun 18, 2020, 5:12:08 PM (4 years ago)
Author:
lrossi
Message:

MARS GCM

HDO
Correction of an error in newstart for inihdo.
Other minor corrections for HDO cycle.
Transition from fractionation coefficients from Merlivat et al. 1967 to Lamb et al. 2017

LR

Location:
trunk/LMDZ.MARS
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/README

    r2374 r2378  
    31043104Minor fix to r2362 (addition of CO2 microphysics): make CO2 conservation
    31053105tests only if CO2 microphysics is on.
     3106
     3107== 18/06/2020 == LR
     3108HDO
     3109Correction of an error in newstart for inihdo.
     3110Other minor corrections for HDO cycle.
     3111Transition from fractionation coefficients from Merlivat et al. 1967 to Lamb et al. 2017
  • trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars/newstart.F

    r2312 r2378  
    10101010        !D/H (SMOW) = 155.76e-6 so HDO/H2O is twice that
    10111011
    1012           DO l=1,llm
    1013             DO j=1,jjp1
    1014               DO i=1,iip1-1
    1015               q(i,j,l,igcm_hdo_vap)= q(i,j,l,igcm_h2o_vap) * DoverH
    1016               q(i,j,l,igcm_hdo_ice)= q(i,j,l,igcm_h2o_ice) * DoverH
    1017               ENDDO
    1018               ! We want to have the very same value at lon -180 and lon 180
    1019               q(iip1,j,l,igcm_hdo_vap) = q(1,j,l,igcm_hdo_vap)
    1020               q(iip1,j,l,igcm_hdo_ice) = q(1,j,l,igcm_hdo_ice)
    1021             ENDDO
    1022           ENDDO
    1023 
    10241012           do ig=1,ngridmx
    10251013           qsurf(ig,igcm_h2o_ice)=max(0.,qsurf(ig,igcm_h2o_ice))
    1026            qsurf(ig,igcm_hdo_ice)= DoverH * qsurf(ig,igcm_h2o_ice)
    10271014           end do
     1015
     1016        ! Update the hdo tracers
     1017         q(1:iip1,1:jjp1,1:llm,igcm_hdo_vap)
     1018     &      =q(1:iip1,1:jjp1,1:llm,igcm_h2o_vap)* DoverH
     1019         q(1:iip1,1:jjp1,1:llm,igcm_hdo_ice)
     1020     &      =q(1:iip1,1:jjp1,1:llm,igcm_h2o_ice)* DoverH
     1021
     1022         qsurf(1:ngridmx,igcm_hdo_ice)
     1023     &      =qsurf(1:ngridmx,igcm_h2o_ice)*DoverH
    10281024
    10291025
  • trunk/LMDZ.MARS/libf/phymars/hdo_surfex_mod.F

    r2324 r2378  
    105105
    106106               if (hdofrac) then !do we use fractionation?
    107                 alpha_c(ig) = exp(16288./zt(ig,1)**2.-9.34e-2)
    108 c               alpha_c = exp(13525./zt(ig,l)**2.-5.59e-2) !Lamb
     107c               alpha_c(ig) = exp(16288./zt(ig,1)**2.-9.34e-2)
     108                alpha_c = exp(13525./zt(ig,1)**2.-5.59e-2) !Lamb
    109109               else
    110110                alpha_c(ig) = 1.
  • trunk/LMDZ.MARS/libf/phymars/phyetat0_mod.F90

    r2312 r2378  
    609609         end do
    610610       endif
     611
     612       if (txt.eq."hdo_ice") then
     613         do ig=1,ngrid
     614          if (qsurf(ig,iq).lt.0.0) then
     615             qsurf(ig,iq) = 0.0
     616          end if
     617         end do
     618       endif
     619
    611620      enddo
    612621     endif ! of if (nq.ge.1)
  • trunk/LMDZ.MARS/libf/phymars/physiq_mod.F

    r2374 r2378  
    30323032
    30333033                do ig=1,ngrid
    3034                 if (qsurf(ig,igcm_h2o_ice).gt.1e-30) then
     3034                if (qsurf(ig,igcm_h2o_ice).gt.qperemin) then
    30353035                    DoH_surf(ig) = 0.5*( qsurf(ig,igcm_hdo_ice)/
    30363036     &                  qsurf(ig,igcm_h2o_ice) )/155.76e-6
  • trunk/LMDZ.MARS/libf/phymars/simpleclouds.F

    r2324 r2378  
    172172
    173173                if (hdofrac) then ! do we use fractionation?
    174                 alpha_c(ig,l) = exp(16288./zt(ig,l)**2.-9.34d-2)
    175 c               alpha_c(ig,l) = exp(13525./zt(ig,l)**2.-5.59d-2)  !Lamb
     174c               alpha_c(ig,l) = exp(16288./zt(ig,l)**2.-9.34d-2)
     175                alpha_c(ig,l) = exp(13525./zt(ig,l)**2.-5.59d-2)  !Lamb
    176176                else
    177177                alpha_c(ig,l) = 1.d0
Note: See TracChangeset for help on using the changeset viewer.