Ignore:
Timestamp:
Apr 30, 2025, 5:55:07 PM (2 months ago)
Author:
afalco
Message:

Generic PCM

Tracers in 1D can now be initialized with VMR set in traceur.def
(homogeneous value or profile) with or without chemistry. Inichim_1D
is still called after. Initialization of co2_ice, h2o_vap and h2o_ice
can still be initialized with profile_co2_ice etc. the old way.

MM

Location:
trunk/LMDZ.GENERIC/libf/phystd/dyn1d
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/dyn1d/inichim_1D.F90

    r3073 r3753  
     1!module inichim_1D_mod
     2
     3!implicit none
     4
    15      subroutine inichim_1D(nlayer, nq, pq, qsurf, play, &
    26                                  flagh2o,flagthermo)
     
    130134         else if (qxf(iq) /= 'None') then
    131135            ! Opening file
    132             fil = trim(datadir)//'/chemical_profiles/'//qxf(iq)
    133             print*, 'chemical pofile '//trim(noms(iq))//': ', fil
     136            fil = qxf(iq)
     137            print*, 'chemical profile '//trim(noms(iq))//': ', fil
    134138            open(UNIT=90,FILE=fil,STATUS='old',iostat=ierr)
    135139            if (ierr.eq.0) then
     
    206210! Or use #ModernTrac-v1 and add another option section 2.
    207211
    208       end
     212   end subroutine inichim_1D
     213
     214!end module inichim_1D_mod
  • trunk/LMDZ.GENERIC/libf/phystd/dyn1d/rcm1d.F

    r3730 r3753  
    4444     &                  NF90_CLOSE
    4545      use version_info_mod, only: print_version_info
     46      !use inichim_1D_mod, only: inichim_1D
     47      !use initracer_1D_mod, only: initracer_1D
    4648
    4749      implicit none
     
    10941096! -----------------
    10951097#ifndef MESOSCALE
    1096       if(tracer.and.photochem.and. .not.restart) then
    1097            print*, "Calling inichim_1D"
     1098      if(tracer.and..not.restart) then
     1099           print*, "Initializing tracers properties and values"
    10981100           call initracer(1,nq)
    10991101           allocate(nametmp(nq))
    11001102           nametmp(1:nq)=tname(1:nq)
    1101            call inichim_1D(nlayer, nq, q, qsurf, play, 0, 0)
     1103           call initracer_1D(nlayer, nq, q, qsurf, play)
     1104           if(photochem) then
     1105                  print*, "Calling inichim_1D"
     1106                  call inichim_1D(nlayer, nq, q, qsurf, play, 0, 0)
     1107           end if
    11021108           tname(1:nq)=nametmp(1:nq)
    11031109           noms(1:nq)=nametmp(1:nq)
Note: See TracChangeset for help on using the changeset viewer.