Ignore:
Timestamp:
Nov 23, 2022, 11:13:18 AM (2 years ago)
Author:
romain.vande
Message:

Mars 1D PCM:
Same as previous commit in 1D.
The variable co2ice is deleted. All the co2 ice on surface is now in qsurf(:,igcm_co2).
CO2 tracer is now mandatory. diagfi output is unchanged.
RV

Location:
trunk/LMDZ.MARS/libf/phymars/dyn1d
Files:
2 edited

Legend:

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

    r2355 r2827  
    110110    if (ierr.eq.0) then
    111111      read(91,*)qsurf(iq)
     112      if (trim(name_tracer(iq)) == 'co2' .and. qsurf(iq).ne.0) then
     113        call abort_physic("read_profile","The value of co2 profile on surface must be 0. It's value must be specified in the run.def as co2ice=XX",1)
     114      endif
    112115      do ilayer = 1, nb_layer
    113116        read(91,*)q(ilayer,iq)
  • trunk/LMDZ.MARS/libf/phymars/dyn1d/testphys1d.F

    r2823 r2827  
    1616      use geometry_mod, only: init_geometry
    1717      use watersat_mod, only: watersat
    18       use tracer_mod, only: igcm_h2o_vap,igcm_h2o_ice
     18      use tracer_mod, only: igcm_h2o_vap,igcm_h2o_ice,igcm_co2
    1919      use planete_h, only: year_day, periheli, aphelie, peri_day,
    2020     &                     obliquit, emin_turb, lmixmin
     
    9595      REAL,ALLOCATABLE :: qsurf(:) ! tracer surface budget (e.g. kg.m-2)
    9696      REAL tsoil(nsoilmx)   ! subsurface soik temperature (K)
    97       REAL co2ice(1)        ! co2ice layer (kg.m-2)
    9897      REAL emis(1)          ! surface layer
    9998      REAL albedo(1,1)      ! surface albedo
     
    547546c  CO2 ice on the surface
    548547c  -------------------
    549       co2ice(1)=0.E+0 ! default value for co2ice
     548      print *, "RVVV: igcm_co2", igcm_co2
     549      qsurf(igcm_co2)=0.E+0 ! default value for co2ice
    550550      PRINT *,'Initial CO2 ice on the surface (kg.m-2)'
    551       call getin("co2ice",co2ice)
    552       write(*,*) " co2ice = ",co2ice
     551      call getin("co2ice",qsurf(igcm_co2))
     552      write(*,*) " co2ice = ",qsurf(igcm_co2)
    553553
    554554c
     
    556556c  ----------
    557557      emis=emissiv
    558       IF (co2ice(1).eq.1.E+0) THEN
     558      IF (qsurf(igcm_co2).eq.1.E+0) THEN
    559559         emis=emisice(1) ! northern hemisphere
    560560         IF(latitude(1).LT.0) emis=emisice(2) ! southern hemisphere
     
    704704      call physdem1("startfi.nc",nsoilmx,ngrid,llm,nq,
    705705     &              dtphys,time,
    706      &              tsurf,tsoil,co2ice,albedo,emis,q2,qsurf,tauscaling,
     706     &              tsurf,tsoil,albedo,emis,q2,qsurf,tauscaling,
    707707     &              totcloudfrac,wstar,watercap)
    708708
Note: See TracChangeset for help on using the changeset viewer.