Changeset 2736 for trunk/LMDZ.GENERIC


Ignore:
Timestamp:
Jun 21, 2022, 11:24:14 AM (3 years ago)
Author:
aslmd
Message:

Changed of callcorrk to physiq_mod

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

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/LMDZ.GENERIC/libf/phystd/callcorrk.F90

    r2728 r2736  
    308308!--------------------------------------------------
    309309
    310 
    311          print*, "callcorrk: Correlated-k data base folder:",trim(datadir)
    312          call getin_p("corrkdir",corrkdir)
    313          print*, "corrkdir = ",corrkdir
    314          write( tmp1, '(i3)' ) L_NSPECTI
    315          write( tmp2, '(i3)' ) L_NSPECTV
    316          banddir=trim(adjustl(tmp1))//'x'//trim(adjustl(tmp2))
    317          banddir=trim(adjustl(corrkdir))//'/'//trim(adjustl(banddir))
    318 
    319          call setspi            ! Basic infrared properties.
    320          call setspv            ! Basic visible properties.
    321          call sugas_corrk       ! Set up gaseous absorption properties.
    322          call suaer_corrk       ! Set up aerosol optical properties.
     310      !this block is now done at firstcall of physiq_mod
     311         ! print*, "callcorrk: Correlated-k data base folder:",trim(datadir)
     312         ! call getin_p("corrkdir",corrkdir)
     313         ! print*, "corrkdir = ",corrkdir
     314         ! write( tmp1, '(i3)' ) L_NSPECTI
     315         ! write( tmp2, '(i3)' ) L_NSPECTV
     316         ! banddir=trim(adjustl(tmp1))//'x'//trim(adjustl(tmp2))
     317         ! banddir=trim(adjustl(corrkdir))//'/'//trim(adjustl(banddir))
     318
     319         ! call setspi            ! Basic infrared properties.
     320         ! call setspv            ! Basic visible properties.
     321         ! call sugas_corrk       ! Set up gaseous absorption properties.
     322         ! call suaer_corrk       ! Set up aerosol optical properties.
    323323       
    324324
  • TabularUnified trunk/LMDZ.GENERIC/libf/phystd/physiq_mod.F90

    r2734 r2736  
    1515
    1616      use ioipsl_getin_p_mod, only: getin_p
    17       use radinc_h, only : L_NSPECTI,L_NSPECTV,naerkind
     17      use radinc_h, only : L_NSPECTI,L_NSPECTV,naerkind, corrkdir, banddir
    1818      use watercommon_h, only : RLVTT, Psat_water,epsi,su_watercycle, RV, T_h2o_ice_liq
    1919      use generic_cloud_common_h, only : epsi_generic, Psat_generic
    2020      use thermcell_mod, only: init_thermcell_mod
    2121      use gases_h, only: gnom, gfrac
    22       use radcommon_h, only: sigma, glat, grav, BWNV, WNOI,DWNI,DWNV,WNOV
     22      use radcommon_h, only: sigma, glat, grav, BWNV, WNOI, DWNI, DWNV, WNOV
    2323      use radii_mod, only: h2o_reffrad, co2_reffrad
    2424      use aerosol_mod, only: iaero_co2, iaero_h2o
     
    7474      use mass_redistribution_mod, only: mass_redistribution
    7575      use condensation_generic_mod, only: condensation_generic
     76      use datafile_mod, only: datadir
    7677#ifndef MESOSCALE
    7778      use vertical_layers_mod, only: presnivs, pseudoalt
     
    468469      ! Misc
    469470      character*2 :: str2
     471      character(len=10) :: tmp1
     472      character(len=10) :: tmp2
    470473!==================================================================================================
    471474
     
    739742         endif
    740743#endif         
    741          
     744         if (corrk) then
     745            ! We initialise the spectral grid here instead of
     746            ! at firstcall of callcorrk so we can output XspecIR, XspecVI
     747            ! when using Dynamico
     748            print*, "physiq_mod: Correlated-k data base folder:",trim(datadir)
     749            call getin_p("corrkdir",corrkdir)
     750            print*,"corrkdir = ", corrkdir
     751            write (tmp1, '(i3)') L_NSPECTI
     752            write (tmp2, '(i3)') L_NSPECTV
     753            banddir=trim(trim(adjustl(tmp1))//'x'//trim(adjustl(tmp2)))
     754            banddir=trim(trim(adjustl(corrkdir))//'/'//trim(adjustl(banddir)))
     755            call setspi !Basic infrared properties.
     756            call setspv ! Basic visible properties.
     757            call sugas_corrk       ! Set up gaseous absorption properties.
     758            call suaer_corrk       ! Set up aerosol optical properties.
     759         endif
    742760         ! XIOS outputs
    743761#ifdef CPP_XIOS
     
    745763         write(*,*) "physiq: call initialize_xios_output"
    746764         call initialize_xios_output(pday,ptime,ptimestep,daysec, &
    747                                      year_day,presnivs,pseudoalt)
     765                                     year_day,presnivs,pseudoalt,WNOI,WNOV)
    748766#endif
    749767         write(*,*) "physiq: end of firstcall"
Note: See TracChangeset for help on using the changeset viewer.