Ignore:
Timestamp:
Feb 22, 2021, 12:44:07 PM (4 years ago)
Author:
dcugnet
Message:

Update the branch to the current trunk.

Location:
LMDZ6/branches/LMDZ-tracers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/LMDZ-tracers

  • LMDZ6/branches/LMDZ-tracers/libf/phylmd/conf_phys_m.F90

    r3630 r3851  
    2929    USE mod_grid_phy_lmdz, ONLY: klon_glo
    3030    USE print_control_mod, ONLY: lunout
     31    use config_ocean_skin_m, only: config_ocean_skin
    3132    USE phys_state_var_mod, ONLY: phys_tstep
    3233
     
    8687    CHARACTER (len = 10),SAVE  :: type_veget_omp
    8788    CHARACTER (len = 8), SAVE  :: aer_type_omp
    88     LOGICAL, SAVE       :: ok_snow_omp
     89    INTEGER, SAVE       :: landice_opt_omp
     90    INTEGER, SAVE       :: n_dtis_omp
     91    INTEGER, SAVE       :: iflag_tsurf_inlandsis_omp
     92    INTEGER, SAVE       :: iflag_albzenith_omp   
     93    LOGICAL, SAVE       :: SnoMod_omp,BloMod_omp,ok_outfor_omp
    8994    LOGICAL, SAVE       :: ok_newmicro_omp
    9095    LOGICAL, SAVE       :: ok_all_xml_omp
     
    318323    !
    319324
    320     ! Martin
    321     !Config Key  = ok_snow
    322     !Config Desc = Flag to activate snow model SISVAT
    323     !Config Def  = .FALSE.
    324     ok_snow_omp = .FALSE.
    325     CALL getin('ok_snow', ok_snow_omp)
    326     ! Martin
    327 
     325    ! INLANDSIS
     326    !==================================================================
     327    ! Martin et Etienne
     328    !Config Key  = landice_opt
     329    !Config Desc = which landice snow model (BULK, SISVAT or INLANDSIS)
     330    !Config Def  = 0
     331    landice_opt_omp = 0
     332    CALL getin('landice_opt', landice_opt_omp)
     333    ! Martin et Etienne
     334
     335    !Etienne
     336    !Config Key  = iflag_tsurf_inlandsis
     337    !Config Desc = which method to calculate tsurf in INLANDSIS
     338    !Config Def  = 0
     339    iflag_tsurf_inlandsis_omp = 0
     340    CALL getin('iflag_tsurf_inlandsis', iflag_tsurf_inlandsis_omp)
     341
     342    !Etienne
     343    !Config Key  = iflag_albzenith
     344    !Config Desc = method to account for albedo sensitivity to solar zenith angle
     345    !Config Def  = 0
     346    iflag_albzenith_omp = 0
     347    CALL getin('iflag_albzenith', iflag_albzenith_omp)
     348
     349    !Etienne
     350    !Config Key  = n_dtis
     351    !Config Desc = number of subtimesteps for INLANDSIS
     352    !Config Def  = 1
     353    n_dtis_omp = 1
     354    CALL getin('n_dtis', n_dtis_omp)
     355
     356    !Etienne
     357    !Config Key  = SnoMod
     358    !Config Desc = activation of snow modules in inlandsis
     359    !Config Def  = 1
     360    SnoMod_omp = .TRUE.
     361    CALL getin('SnoMod', SnoMod_omp)
     362
     363    !Etienne
     364    !Config Key  = BloMod
     365    !Config Desc = activation of blowing snow in inlandsis
     366    !Config Def  = 1
     367    BloMod_omp = .FALSE.
     368    CALL getin('BloMod', BloMod_omp)
     369
     370    !Etienne
     371    !Config Key  = ok_outfor
     372    !Config Desc = activation of output ascii file in inlandsis
     373    !Config Def  = 1
     374   ok_outfor_omp = .FALSE.
     375    CALL getin('ok_outfor', ok_outfor_omp)
     376
     377
     378
     379    !==================================================================
     380   
    328381    !Config Key  = OK_journe
    329382    !Config Desc = Pour des sorties journalieres
     
    22912344       ok_veget=.FALSE.
    22922345    ENDIF
    2293     ! Martin
    2294     ok_snow = ok_snow_omp
    2295     ! Martin
    2296 
     2346    ! SISVAT and INLANDSIS
     2347    !=================================================
     2348    landice_opt = landice_opt_omp
     2349    iflag_tsurf_inlandsis = iflag_tsurf_inlandsis_omp
     2350    iflag_albzenith = iflag_albzenith_omp
     2351    n_dtis=n_dtis_omp
     2352    SnoMod=SnoMod_omp
     2353    BloMod=BloMod_omp
     2354    ok_outfor=ok_outfor_omp
     2355    !=================================================
    22972356    ok_all_xml = ok_all_xml_omp
    22982357    ok_lwoff = ok_lwoff_omp
     
    24862545    ENDIF
    24872546
    2488     ! Test sur new_aod. Ce flag permet de retrouver les resultats de l'AR4
    2489     ! il n'est utilisable que lors du couplage avec le SO4 seul
     2547    ! Flag_aerosol cannot be set to zero if aerosol direct effect (ade) or aerosol indirect effect (aie) are activated
    24902548    IF (ok_ade .OR. ok_aie) THEN
    24912549       IF ( flag_aerosol .EQ. 0 ) THEN
     
    24942552    ENDIF
    24952553
    2496     ! Flag_aerosol cannot be to zero if we are in coupled mode for aerosol
     2554    ! Flag_aerosol cannot be set to zero if we are in coupled mode for aerosol
    24972555    IF (aerosol_couple .AND. flag_aerosol .EQ. 0 ) THEN
    24982556       CALL abort_physic('conf_phys', 'flag_aerosol cannot be to zero if aerosol_couple=y ', 1)
    24992557    ENDIF
    25002558
    2501     ! Read_climoz need to be zero if we are in couple mode for chemistry
     2559    ! Read_climoz needs to be set zero if we are in couple mode for chemistry
    25022560    IF (chemistry_couple .AND. read_climoz .ne. 0) THEN
    25032561       CALL abort_physic('conf_phys', 'read_climoz need to be to zero if chemistry_couple=y ', 1)
     
    25552613    WRITE(lunout,*) ' Version ocean = ', version_ocean
    25562614    WRITE(lunout,*) ' Config veget = ', ok_veget,type_veget
    2557     WRITE(lunout,*) ' Snow model SISVAT : ok_snow = ', ok_snow
     2615    WRITE(lunout,*) ' Snow model landice : landice_opt = ', landice_opt
    25582616    WRITE(lunout,*) ' Config xml pour XIOS : ok_all_xml = ', ok_all_xml
    25592617    WRITE(lunout,*) ' Sortie journaliere = ', ok_journe
     
    27542812    WRITE(lunout,*) ' carbon_cycle_rad = ', carbon_cycle_rad
    27552813    WRITE(lunout,*) ' level_coupling_esm = ', level_coupling_esm
     2814    WRITE(lunout,*) ' iflag_tsurf_inlandsis = ', iflag_tsurf_inlandsis
     2815    WRITE(lunout,*) ' iflag_albzenith = ', iflag_albzenith
     2816    WRITE(lunout,*) ' n_dtis = ', n_dtis
     2817    WRITE(lunout,*) ' SnoMod = ', SnoMod
     2818    WRITE(lunout,*) ' BloMod = ', BloMod
     2819    WRITE(lunout,*) ' ok_outfor = ', ok_outfor
     2820
    27562821
    27572822    !$OMP END MASTER
    2758 
    2759     RETURN
     2823    call config_ocean_skin
    27602824
    27612825  END SUBROUTINE conf_phys
Note: See TracChangeset for help on using the changeset viewer.