Ignore:
Timestamp:
Jan 10, 2018, 12:25:01 PM (7 years ago)
Author:
jvatant
Message:

Making chemistry handling more flexible - step 2.5
+ For more convenience I introduce specific modules
for chemistry stuff specific to start2archive and newstart
and not to pollute main module comchem_h.
--JVO

Location:
trunk/LMDZ.TITAN/libf/dynphy_lonlat/phytitan
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.TITAN/libf/dynphy_lonlat/phytitan/lect_start_archive.F

    r1889 r1890  
    55
    66!      USE surfdat_h
    7       USE comchem_h, ONLY: nlaykimold, preskimold
     7      USE comchem_newstart_h, ONLY: nlaykimold, preskimold
    88      USE comsoil_h, ONLY: nsoilmx, layer, mlayer, volcapa, inertiedat
    99      USE infotrac, ONLY: tname, nqtot
  • trunk/LMDZ.TITAN/libf/dynphy_lonlat/phytitan/newstart.F

    r1889 r1890  
    1717     &                              is_master
    1818      use infotrac, only: infotrac_init, nqtot, tname
    19       USE comchem_h, ONLY: nlaykim_up, nlaykimold
     19      USE comchem_h, ONLY: nlaykim_up
     20      USE comchem_newstart_h, ONLY: nlaykimold
    2021      USE comsoil_h, ONLY: nsoilmx, layer, mlayer, inertiedat
    2122      USE surfdat_h, ONLY: phisfi, albedodat,
     
    3536      USE ener_mod, ONLY: etot0,ptot0,ztot0,stot0,ang0
    3637      use tabfi_mod, only: tabfi
     38      use callkeys_mod, only: callchim
    3739      use iniphysiq_mod, only: iniphysiq
    3840      use phyetat0_mod, only: phyetat0
     
    10851087        ! Regriding is then done, if needed
    10861088       
    1087         IF (nlaykimold.ne.nlaykim_up) THEN
     1089        IF (callchim .and. nlaykimold.ne.nlaykim_up) THEN
    10881090
    10891091          WRITE(*,*) " Warning, nlaykimold=", nlaykimold
    10901092          WRITE(*,*) ' which implies that a regriding on upper chemistry
    1091      & will be performed.'
     1093     & fields will be performed.'
    10921094          WRITE(*,*)
    10931095         
    1094 !          CALL  regrid_kim
     1096!          CALL regrid_kim(ngridmx)
    10951097         
    10961098        ENDIF
  • trunk/LMDZ.TITAN/libf/dynphy_lonlat/phytitan/start2archive.F

    r1887 r1890  
    2121      use infotrac, only: infotrac_init, nqtot, tname
    2222      USE comsoil_h
    23       USE comchem_h
     23     
     24      USE comchem_h, only : nlaykim_up, preskim
     25      USE comchem_startarch_h
    2426
    2527!      USE comgeomfi_h, ONLY: lati, long, area
     
    233235     . I presume they're all here as you can't do uncomplete chemistry!"
    234236        ! Allocates upper chemistry fields in comchem_h on physical and scalar grid
    235         CALL allokim_start2archive(ngridmx,ip1jmp1)
     237        CALL alloc_kim_start2archive(ngridmx,ip1jmp1)
    236238        kim=.TRUE.
    237239      ENDIF
Note: See TracChangeset for help on using the changeset viewer.