Changeset 5265 for LMDZ6/trunk


Ignore:
Timestamp:
Oct 23, 2024, 5:08:55 PM (3 months ago)
Author:
abarral
Message:

Wrap COSP cpp keys uses

Location:
LMDZ6/trunk/libf
Files:
2 edited

Legend:

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

    r5253 r5265  
    113113    USE time_phylmdz_mod,    ONLY: annee_ref, day_ini, day_ref, start_time
    114114    USE vertical_layers_mod, ONLY: aps, bps, ap, bp
    115     USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_INCA, CPPKEY_REPROBUS, CPPKEY_STRATAER, CPPKEY_DUST
     115    USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_INCA, CPPKEY_REPROBUS, CPPKEY_STRATAER, CPPKEY_DUST, CPPKEY_COSP, CPPKEY_COSP2, CPPKEY_COSPV2
    116116
    117117#ifdef CPP_RRTM
     
    11851185    !============================================================
    11861186    ! AI 10-22
    1187 #ifdef CPP_COSP
    11881187    include "ini_COSP.h"
    1189 #endif
    1190 #ifdef CPP_COSPV2
    1191     include "ini_COSP.h"
    1192 #endif
    11931188    real :: mr_ozone(klon,klev), phicosp(klon,klev)
    11941189
     
    17831778      if (ok_cosp) then
    17841779
    1785 #ifdef CPP_COSP
     1780IF (CPPKEY_COSP) THEN
    17861781        CALL ini_COSP(ref_liq_cosp0,ref_ice_cosp0,pctsrf_cosp0,zu10m_cosp0,zv10m_cosp0, &
    17871782               zxtsol_cosp0,zx_rh_cosp0,cldfra_cosp0,rnebcon_cosp0,flwc_cosp0, &
     
    18011796               pmflxr_cosp0(:,1:klev),pmflxs_cosp0(:,1:klev), &
    18021797               mr_ozone_cosp0,cldtau_cosp0, cldemi_cosp0)
    1803 #endif
    1804 
    1805 #ifdef CPP_COSPV2
     1798END IF
     1799
     1800IF (CPPKEY_COSPV2) THEN
    18061801          CALL ini_COSP(ref_liq_cosp0,ref_ice_cosp0,pctsrf_cosp0,zu10m_cosp0,zv10m_cosp0, &
    18071802               zxtsol_cosp0,zx_rh_cosp0,cldfra_cosp0,rnebcon_cosp0,flwc_cosp0, &
     
    18211816               pmflxr_cosp0(:,1:klev),pmflxs_cosp0(:,1:klev), &
    18221817               mr_ozone_cosp0,cldtau_cosp0, cldemi_cosp0)
    1823 #endif
     1818END IF
    18241819      ENDIF
    18251820
     
    51745169    IF (ok_cosp) THEN
    51755170       ! adeclarer
    5176 #ifdef CPP_COSP
     5171IF (CPPKEY_COSP) THEN
    51775172       IF (itap.eq.1.or.MOD(itap,NINT(freq_cosp/phys_tstep)).EQ.0) THEN
    51785173
     
    52035198
    52045199       ENDIF
    5205 #endif
    5206 
    5207 #ifdef CPP_COSP2
     5200END IF
     5201
     5202IF (CPPKEY_COSP2) THEN
    52085203       IF (itap.eq.1.or.MOD(itap,NINT(freq_cosp/phys_tstep)).EQ.0) THEN
    52095204
     
    52275222               mr_ozone,cldtau, cldemi)
    52285223       ENDIF
    5229 #endif
    5230 
    5231 #ifdef CPP_COSPV2
     5224END IF
     5225
     5226IF (CPPKEY_COSPV2) THEN
    52325227       IF (itap.eq.1.or.MOD(itap,NINT(freq_cosp/phys_tstep)).EQ.0) THEN
    52335228!        IF (MOD(itap,NINT(freq_cosp/phys_tstep)).EQ.0) THEN
     
    52575252               mr_ozone,cldtau, cldemi)
    52585253       ENDIF
    5259 #endif
     5254END IF
    52605255
    52615256    ENDIF  !ok_cosp
  • LMDZ6/trunk/libf/phylmdiso/physiq_mod.F90

    r5256 r5265  
    430430       reffclwc, cldnvi, lcc3d, lcc3dcon, lcc3dstra, icc3dcon, icc3dstra
    431431       USE output_physiqex_mod, ONLY: output_physiqex
    432        USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_INCA, CPPKEY_REPROBUS, CPPKEY_STRATAER, CPPKEY_DUST
     432       USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_INCA, CPPKEY_REPROBUS, CPPKEY_STRATAER, CPPKEY_DUST, CPPKEY_COSP, CPPKEY_COSP2, CPPKEY_COSPV2
    433433
    434434
     
    12951295    !============================================================
    12961296    ! AI 10-22
    1297 #ifdef CPP_COSP
    12981297    include "ini_COSP.h"
    1299 #endif
    1300 #ifdef CPP_COSPV2
    1301     include "ini_COSP.h"
    1302 #endif
    13031298    real :: mr_ozone(klon,klev), phicosp(klon,klev)
    13041299
     
    19531948      if (ok_cosp) then
    19541949
    1955 #ifdef CPP_COSP
     1950IF (CPPKEY_COSP) THEN
    19561951        CALL ini_COSP(ref_liq_cosp0,ref_ice_cosp0,pctsrf_cosp0,zu10m_cosp0,zv10m_cosp0, &
    19571952               zxtsol_cosp0,zx_rh_cosp0,cldfra_cosp0,rnebcon_cosp0,flwc_cosp0, &
     
    19711966               pmflxr_cosp0(:,1:klev),pmflxs_cosp0(:,1:klev), &
    19721967               mr_ozone_cosp0,cldtau_cosp0, cldemi_cosp0)
    1973 #endif
    1974 
    1975 #ifdef CPP_COSPV2
     1968END IF
     1969
     1970IF (CPPKEY_COSPV2) THEN
    19761971          CALL ini_COSP(ref_liq_cosp0,ref_ice_cosp0,pctsrf_cosp0,zu10m_cosp0,zv10m_cosp0, &
    19771972               zxtsol_cosp0,zx_rh_cosp0,cldfra_cosp0,rnebcon_cosp0,flwc_cosp0, &
     
    19911986               pmflxr_cosp0(:,1:klev),pmflxs_cosp0(:,1:klev), &
    19921987               mr_ozone_cosp0,cldtau_cosp0, cldemi_cosp0)
    1993 #endif
     1988END IF
    19941989
    19951990      endif !ok_cosp
     
    67256720    IF (ok_cosp) THEN
    67266721       ! adeclarer
    6727 #ifdef CPP_COSP
     6722IF (CPPKEY_COSP) THEN
    67286723       IF (itap.eq.1.or.MOD(itap,NINT(freq_cosp/phys_tstep)).EQ.0) THEN
    67296724
     
    67546749
    67556750       ENDIF
    6756 #endif
    6757 
    6758 #ifdef CPP_COSP2
     6751END IF
     6752
     6753IF (CPPKEY_COSP2) THEN
    67596754       IF (itap.eq.1.or.MOD(itap,NINT(freq_cosp/phys_tstep)).EQ.0) THEN
    67606755
     
    67786773               mr_ozone,cldtau, cldemi)
    67796774       ENDIF
    6780 #endif
    6781 
    6782 #ifdef CPP_COSPV2
     6775END IF
     6776
     6777IF (CPPKEY_COSPV2) THEN
    67836778       IF (itap.eq.1.or.MOD(itap,NINT(freq_cosp/phys_tstep)).EQ.0) THEN
    67846779!        IF (MOD(itap,NINT(freq_cosp/phys_tstep)).EQ.0) THEN
     
    68086803               mr_ozone,cldtau, cldemi)
    68096804       ENDIF
    6810 #endif
     6805END IF
    68116806
    68126807    ENDIF  !ok_cosp
Note: See TracChangeset for help on using the changeset viewer.