Ignore:
Timestamp:
Jun 29, 2018, 12:31:11 PM (6 years ago)
Author:
Laurent Fairhead
Message:

First attempt at merging with trunk

Location:
LMDZ6/branches/DYNAMICO-conv
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/DYNAMICO-conv

  • LMDZ6/branches/DYNAMICO-conv/libf/phylmd/conf_phys_m.F90

    r3065 r3356  
    9292    LOGICAL, SAVE       :: ok_newmicro_omp
    9393    LOGICAL, SAVE       :: ok_all_xml_omp
     94    LOGICAL, SAVE       :: ok_lwoff_omp
    9495    LOGICAL, SAVE       :: ok_journe_omp, ok_mensuel_omp, ok_instan_omp, ok_hf_omp       
    9596    LOGICAL, SAVE       :: ok_LES_omp   
     
    213214    LOGICAL,SAVE :: ok_lic_cond_omp
    214215    !
    215     LOGICAL,SAVE  :: cycle_diurne_omp,soil_model_omp,new_oliq_omp
     216    INTEGER,SAVE  :: iflag_cycle_diurne_omp
     217    LOGICAL,SAVE  :: soil_model_omp,new_oliq_omp
    216218    LOGICAL,SAVE  :: ok_orodr_omp, ok_orolf_omp, ok_limitvrai_omp
    217219    INTEGER, SAVE :: nbapp_rad_omp, iflag_con_omp
     
    295297    ok_all_xml_omp = .FALSE.
    296298    CALL getin('ok_all_xml', ok_all_xml_omp)
     299
     300    !
     301    !Config Key  = ok_lwoff
     302    !Config Desc = inhiber l effet radiatif LW des nuages
     303    !Config Def  = .FALSE.
     304    !Config Help =
     305    !
     306    ok_lwoff_omp = .FALSE.
     307    CALL getin('ok_lwoff', ok_lwoff_omp)
    297308    !
    298309
     
    405416    ! - flag_aerosol=5 => dust only
    406417    ! - flag_aerosol=6 => all aerosol
     418    ! - flag_aerosol=7 => natural aerosol + MACv2SP
     419    ! - (in this case aerosols.1980.nc should point to aerosols.nat.nc)
    407420
    408421    flag_aerosol_omp = 0
     
    709722    ! Constantes precedemment dans dyn3d/conf_gcm
    710723
    711     !Config  Key  = cycle_diurne
    712     !Config  Desc = Cycle ddiurne
    713     !Config  Def  = y
     724    !Config  Key  = iflag_cycle_diurne
     725    !Config  Desc = Cycle diurne
     726    !Config  Def  = 1
    714727    !Config  Help = Cette option permet d'eteidre le cycle diurne.
    715728    !Config         Peut etre util pour accelerer le code !
    716     cycle_diurne_omp = .TRUE.
    717     CALL getin('cycle_diurne',cycle_diurne_omp)
     729    iflag_cycle_diurne_omp = 1
     730    CALL getin('iflag_cycle_diurne',iflag_cycle_diurne_omp)
    718731
    719732    !Config  Key  = soil_model
     
    21552168    RCFC12_per = RCFC12_per_omp
    21562169
    2157     cycle_diurne = cycle_diurne_omp
     2170    iflag_cycle_diurne = iflag_cycle_diurne_omp
    21582171    soil_model = soil_model_omp
    21592172    new_oliq = new_oliq_omp
     
    22462259
    22472260    ok_all_xml = ok_all_xml_omp
     2261    ok_lwoff = ok_lwoff_omp
    22482262    ok_newmicro = ok_newmicro_omp
    22492263    ok_journe = ok_journe_omp
     
    24382452
    24392453    ! Flag_aerosol cannot be to zero if we are in coupled mode for aerosol
    2440     IF (aerosol_couple .AND. flag_aerosol .eq. 0 ) THEN
     2454    IF (aerosol_couple .AND. flag_aerosol .EQ. 0 ) THEN
    24412455       CALL abort_physic('conf_phys', 'flag_aerosol cannot be to zero if aerosol_couple=y ', 1)
    24422456    ENDIF
    24432457
    24442458    ! flag_aerosol need to be different to zero if ok_cdnc is activated
    2445     IF (ok_cdnc .AND. flag_aerosol .eq. 0) THEN
     2459    IF (ok_cdnc .AND. flag_aerosol .EQ. 0) THEN
    24462460       CALL abort_physic('conf_phys', 'flag_aerosol cannot be to zero if ok_cdnc is activated ', 1)
    24472461    ENDIF
     
    24502464    IF (ok_aie .AND. .NOT. ok_cdnc) THEN
    24512465       CALL abort_physic('conf_phys', 'ok_cdnc must be set to y if ok_aie is activated',1)
     2466    ENDIF
     2467
     2468    ! flag_aerosol=7 => MACv2SP climatology
     2469    IF (flag_aerosol.EQ.7.AND. iflag_rrtm.NE.1) THEN
     2470       CALL abort_physic('conf_phys', 'flag_aerosol=7 (MACv2SP) can only be activated with RRTM',1)
     2471    ENDIF
     2472    IF (flag_aerosol.EQ.7.AND. NSW.NE.6) THEN
     2473       CALL abort_physic('conf_phys', 'flag_aerosol=7 (MACv2SP) can only be activated with NSW=6',1)
    24522474    ENDIF
    24532475
     
    24652487    ! ORCHIDEE must be activated for ifl_pbltree=1
    24662488    IF (.NOT. ok_veget .AND. ifl_pbltree==1) THEN
    2467        WRITE(lunout,*)' ORCHIDEE must be activated for ifl_pbltree=1'
    2468        CALL abort_physic('conf_phys','ok_veget and ifl_pbltree not coherent',1)
     2489       WRITE(lunout,*)'Warning: ORCHIDEE must be activated for ifl_pbltree=1'
     2490       WRITE(lunout,*)'ifl_pbltree is now changed to zero'
     2491       ifl_pbltree=0
    24692492    END IF
    24702493
     
    25062529    write(lunout,*)'ok_lic_melt=', ok_lic_melt
    25072530    write(lunout,*)'ok_lic_cond=', ok_lic_cond
    2508     write(lunout,*)'cycle_diurne=',cycle_diurne
     2531    write(lunout,*)'iflag_cycle_diurne=',iflag_cycle_diurne
    25092532    write(lunout,*)'soil_model=',soil_model
    25102533    write(lunout,*)'new_oliq=',new_oliq
Note: See TracChangeset for help on using the changeset viewer.