Changeset 2166 for trunk/LMDZ.MARS/libf


Ignore:
Timestamp:
Oct 4, 2019, 3:07:15 PM (5 years ago)
Author:
abierjon
Message:

MARS GCM:
Handle case when injecting without dust scenario (iaervar=1) in compute_dtau_mod
AB

File:
1 edited

Legend:

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

    r2160 r2166  
    1919        USE comcstfi_h, only: g
    2020        USE tracer_mod, only: alpha_lift,igcm_dust_mass,igcm_dust_number
     21        USE dimradmars_mod, only: tauvis
    2122       
    2223        IMPLICIT NONE
     
    6162       
    6263        ! 1. Obtain tauref_scenario from dust scenario at zday+1
    63         zday_scenario=zday-modulo(zday,1.) ! integer value of the day: the scenario opacity is measured at 14:00
    64         zday_scenario=zday_scenario+1      ! opacity of the dust scenario is read the day after
    65         call read_dust_scenario(ngrid,nlayer,zday_scenario,pplev,       &
    66        &                        tauref_scenario)
     64        if (iaervar.eq.1) then
     65          tauref_scenario = tauvis
     66        else
     67          zday_scenario=zday-modulo(zday,1.) ! integer value of the day: the scenario opacity is measured at 14:00
     68          zday_scenario=zday_scenario+1      ! opacity of the dust scenario is read the day after
     69          call read_dust_scenario(ngrid,nlayer,zday_scenario,pplev,     &
     70       &                          tauref_scenario)
     71        endif
    6772       ! for diagnostics
    6873        call WRITEDIAGFI(ngrid,"tauref_scenario","tauref_scenario",     &
Note: See TracChangeset for help on using the changeset viewer.