Changeset 3378 for LMDZ6/trunk


Ignore:
Timestamp:
Jul 24, 2018, 1:15:20 PM (6 years ago)
Author:
oboucher
Message:

Add a test to prevent change of solaire if ok_suntime_rrtm is activated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/conf_phys_m.F90

    r3357 r3378  
    154154
    155155    REAL,SAVE :: R_ecc_omp,R_peri_omp,R_incl_omp,solaire_omp
     156    REAL      :: solaire_omp_init
    156157    LOGICAL,SAVE :: ok_suntime_rrtm_omp
    157158    REAL,SAVE :: co2_ppm_omp, RCO2_omp, co2_ppm_per_omp, RCO2_per_omp
     
    575576    !valeur AMIP II
    576577    solaire_omp = 1365.
     578    solaire_omp_init = solaire_omp     !--we keep track of the default value
    577579    CALL getin('solaire', solaire_omp)
    578580    !
     
    24322434       CALL abort_physic('conf_phys','choice iflag_rrtm not valid',1)
    24332435    ENDIF
     2436    !--here we test that solaire has not been changed if ok_suntime_rrtm is activated
     2437    IF (ok_suntime_rrtm.AND.ABS(solaire-solaire_omp_init).GT.1.E-10) THEN
     2438       WRITE(lunout,*) ' ERROR ok_suntime_rrtm=y and solaire is provided in def file'
     2439       CALL abort_physic('conf_phys','ok_suntime_rrtm=y and solaire is provided',1)
     2440    ENDIF
    24342441#ifdef CPP_StratAer
    24352442    IF (iflag_rrtm .NE. 1) THEN
     
    24692476       CALL abort_physic('conf_phys', 'read_climoz need to be to zero if chemistry_couple=y ', 1)
    24702477    ENDIF
    2471 
    24722478
    24732479    ! flag_aerosol need to be different to zero if ok_cdnc is activated
Note: See TracChangeset for help on using the changeset viewer.