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

Wrap COSP cpp keys uses

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.