Changeset 2182


Ignore:
Timestamp:
Nov 24, 2019, 2:11:27 PM (5 years ago)
Author:
emillour
Message:

Mars GCM:
Fix in surfini for the 1D model when imposing watercaptag.
Protect output of CO2 saturation in physiq to when there is a CO2 tracer.
EM

Location:
trunk/LMDZ.MARS
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/README

    r2179 r2182  
    27862786== 14/11/2019 == MV
    27872787Add the sublimation/condensation latent heat release from the surface water ice in vdifc_mod.F. It can be activated or deactivated with the new flag "latentheat" (for now latentheat=false by default).
     2788
     2789== 24/11/2019 == EM
     2790Fix in surfini for the 1D model when imposing watercaptag.
     2791Protect output of CO2 saturation in physiq to when there is a CO2 tracer.
  • trunk/LMDZ.MARS/libf/phymars/physiq_mod.F

    r2164 r2182  
    30893089     &                                   ,"kg.m-2",0,co2ice)
    30903090
    3091       call co2sat(ngrid*nlayer,zt,zplay,zqsatco2)
    3092          do ig=1,ngrid
     3091         if (igcm_co2.ne.0) then
     3092          call co2sat(ngrid*nlayer,zt,zplay,zqsatco2)
     3093           do ig=1,ngrid
    30933094            do l=1,nlayer
    30943095               satuco2(ig,l) = zq(ig,l,igcm_co2)*
     
    30983099c     &              ,zt(ig,l),ptime
    30993100            enddo
    3100          enddo
     3101           enddo
     3102          endif
    31013103
    31023104c         CALL writeg1d(ngrid,nlayer,zt,'temp','K')
  • trunk/LMDZ.MARS/libf/phymars/surfini.F

    r1944 r2182  
    452452       endif !of if (is_master)
    453453       
    454        ! Now scatter fields watercaptag and dryness from master to all
    455        ! (is just a plain copy in serial mode)
    456        call scatter(dryness_glo,dryness)
    457        call scatter(watercaptag_glo,watercaptag)
    458        
     454       if (ngrid.gt.1) then
     455        ! Now scatter fields watercaptag and dryness from master to all
     456        ! (is just a plain copy in serial mode)
     457        call scatter(dryness_glo,dryness)
     458        call scatter(watercaptag_glo,watercaptag)
     459       endif
    459460       ELSE
    460461         watercaptag(:) = .false.
Note: See TracChangeset for help on using the changeset viewer.