Ignore:
Timestamp:
Apr 19, 2018, 3:16:47 PM (7 years ago)
Author:
emillour
Message:

Mars GCM:
CO2 code updates:

  • make co2cloud a module and save mem_* variables (initialized via phys_state_var_init)
  • make improvedCO2cloud a module
  • read/write mem_* variables in phyetat0.F and phyredem.F

DB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/phyetat0.F90

    r1711 r1922  
    11subroutine phyetat0 (fichnom,tab0,Lmodif,nsoil,ngrid,nlay,nq, &
    22                     day_ini,time0,tsurf,tsoil,emis,q2,qsurf,co2ice, &
    3                      tauscaling,totcloudfrac)
    4 !  use netcdf
     3                     tauscaling,totcloudfrac,mem_Mccn_co2,mem_Nccn_co2,&
     4                     mem_Mh2o_co2)
     5
    56  use tracer_mod, only: noms ! tracer names
    67  use surfdat_h, only: phisfi, albedodat, z0, z0_default,&
     
    4748  real,intent(out) :: tauscaling(ngrid) ! dust conversion factor
    4849  real,intent(out) :: totcloudfrac(ngrid) ! total cloud fraction
     50  real,intent(out) :: mem_Mccn_co2(ngrid,nlay) ! Memory of CCN mass of H2O and dust used by CO2
     51  real,intent(out) :: mem_Nccn_co2(ngrid,nlay) ! Memory of CCN number of H2O and dust used by CO2
     52  real,intent(out) :: mem_Mh2o_co2(ngrid,nlay) ! Memory of H2O mass integred into CO2 crystal
    4953!======================================================================
    5054!  Local variables:
     
    230234endif
    231235
     236! Memory of the origin of the co2 particles
     237call get_field("mem_Mccn_co2",mem_Mccn_co2,found,indextime)
     238if (.not.found) then
     239  write(*,*) "phyetat0: <mem_Mccn_co2> not in file"
     240  mem_Mccn_co2(:,:)=0
     241else
     242  write(*,*) "phyetat0: Memory of CCN mass of H2O and dust used by CO2"
     243  write(*,*) " <mem_Mccn_co2> range:", &
     244             minval(mem_Mccn_co2), maxval(mem_Mccn_co2)
     245endif
     246
     247call get_field("mem_Nccn_co2",mem_Nccn_co2,found,indextime)
     248if (.not.found) then
     249  write(*,*) "phyetat0: <mem_Nccn_co2> not in file"
     250  mem_Nccn_co2(:,:)=0
     251else
     252  write(*,*) "phyetat0: Memory of CCN number of H2O and dust used by CO2"
     253  write(*,*) " <mem_Nccn_co2> range:", &
     254             minval(mem_Nccn_co2), maxval(mem_Nccn_co2)
     255endif
     256
     257call get_field("mem_Mh2o_co2",mem_Mh2o_co2,found,indextime)
     258if (.not.found) then
     259  write(*,*) "phyetat0: <mem_Mh2o_co2> not in file"
     260  mem_Mh2o_co2(:,:)=0
     261else
     262  write(*,*) "phyetat0: Memory of H2O mass integred into CO2 crystal"
     263  write(*,*) " <mem_Mh2o_co2> range:", &
     264             minval(mem_Mh2o_co2), maxval(mem_Mh2o_co2)
     265endif
    232266
    233267! Dust conversion factor
Note: See TracChangeset for help on using the changeset viewer.