Ignore:
Timestamp:
Jul 31, 2024, 5:24:31 PM (7 weeks ago)
Author:
abarral
Message:

Move CPP_COSP* in lmdz_cppkeys_wrapper.F90
Change calcul_divers.h into lmdz_calcul_divers.f90

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/phylmdiso/physiq_mod.F90

    r5144 r5151  
    110110    USE phytrac_mod, ONLY: phytrac_init, phytrac
    111111    USE phys_output_write_mod
    112 
    113     USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_DUST, CPPKEY_STRATAER
     112    USE lmdz_calcul_divers, ONLY: calcul_divers
     113
     114    USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_DUST, CPPKEY_STRATAER, CPPKEY_COSP, CPPKEY_COSP2, CPPKEY_COSPV2
    114115
    115116!!!!!!!!!!!!!!!!!! "USE" section for CPP keys !!!!!!!!!!!!!!!!!!!!!!!!
     
    12741275    !============================================================
    12751276    ! AI 10-22
    1276 #ifdef CPP_COSP
    1277     include "ini_COSP.h"
    1278 #endif
    1279 #ifdef CPP_COSPV2
    1280     include "ini_COSP.h"
    1281 #endif
     1277    INCLUDE "ini_COSP.h"
     1278
    12821279    REAL :: mr_ozone(klon,klev), phicosp(klon,klev)
    12831280
     
    19221919
    19231920      IF (ok_cosp) THEN
    1924 #ifdef CPP_COSP
     1921IF (CPPKEY_COSP) THEN
    19251922        ! A.I : Initialisations pour le 1er passage a Cosp
    19261923        CALL ini_COSP(ref_liq_cosp0,ref_ice_cosp0,pctsrf_cosp0,zu10m_cosp0,zv10m_cosp0, &
     
    19411938               pmflxr_cosp0(:,1:klev),pmflxs_cosp0(:,1:klev), &
    19421939               mr_ozone_cosp0,cldtau_cosp0, cldemi_cosp0)
    1943 #endif
    1944 
    1945 #ifdef CPP_COSP2
     1940END IF
     1941
     1942IF (CPPKEY_COSP2) THEN
    19461943        CALL ini_COSP(ref_liq_cosp0,ref_ice_cosp0,pctsrf_cosp0,zu10m_cosp0,zv10m_cosp0, &
    19471944               zxtsol_cosp0,zx_rh_cosp0,cldfra_cosp0,rnebcon_cosp0,flwc_cosp0, &
     
    19611958               pmflxr(:,1:klev),pmflxs(:,1:klev), &
    19621959               mr_ozone,cldtau, cldemi)
    1963 #endif
    1964 
    1965 #ifdef CPP_COSPV2
     1960END IF
     1961
     1962IF (CPPKEY_COSPV2) THEN
    19661963          CALL lmdz_cosp_interface(itap,phys_tstep,freq_cosp, &
    19671964               ok_mensuelCOSP,ok_journeCOSP,ok_hfCOSP, &
     
    19761973               pmflxr(:,1:klev),pmflxs(:,1:klev), &
    19771974               mr_ozone,cldtau, cldemi)
    1978 #endif
     1975END IF
    19791976      ENDIF
    19801977
     
    66456642    IF (ok_cosp) THEN
    66466643       ! adeclarer
    6647 #ifdef CPP_COSP
    6648        IF (itap.EQ.1.OR.MOD(itap,NINT(freq_cosp/phys_tstep)).EQ.0) THEN
    6649 
    6650           IF (prt_level .GE.10) THEN
     6644IF (CPPKEY_COSP) THEN
     6645       IF (itap==1.OR.MOD(itap,NINT(freq_cosp/phys_tstep))==0) THEN
     6646
     6647          IF (prt_level >=10) THEN
    66516648             PRINT*,'freq_cosp',freq_cosp
    66526649          ENDIF
     
    66746671
    66756672       ENDIF
    6676 #endif
    6677 
    6678 #ifdef CPP_COSP2
    6679        IF (itap.EQ.1.OR.MOD(itap,NINT(freq_cosp/phys_tstep)).EQ.0) THEN
    6680 
    6681           IF (prt_level .GE.10) THEN
     6673END IF
     6674
     6675IF (CPPKEY_COSP2) THEN
     6676       IF (itap==1.OR.MOD(itap,NINT(freq_cosp/phys_tstep))==0) THEN
     6677
     6678          IF (prt_level >=10) THEN
    66826679             PRINT*,'freq_cosp',freq_cosp
    66836680          ENDIF
     
    66986695               mr_ozone,cldtau, cldemi)
    66996696       ENDIF
    6700 #endif
    6701 
    6702 #ifdef CPP_COSPV2
    6703        IF (itap.EQ.1.OR.MOD(itap,NINT(freq_cosp/phys_tstep)).EQ.0) THEN
     6697END IF
     6698
     6699IF (CPPKEY_COSPV2) THEN
     6700       IF (itap==1.OR.MOD(itap,NINT(freq_cosp/phys_tstep))==0) THEN
    67046701!        IF (MOD(itap,NINT(freq_cosp/phys_tstep)).EQ.0) THEN
    67056702
    6706           IF (prt_level .GE.10) THEN
     6703          IF (prt_level >=10) THEN
    67076704             PRINT*,'freq_cosp',freq_cosp
    67086705          ENDIF
     
    67286725               mr_ozone,cldtau, cldemi)
    67296726       ENDIF
    6730 #endif
     6727END IF
    67316728
    67326729    ENDIF  !ok_cosp
     
    70177014
    70187015    !IM initialisation + calculs divers diag AMIP2
    7019 
    7020     include "calcul_divers.h"
     7016    CALL calcul_divers(itap, itapm1, un_jour)
    70217017
    70227018    !IM Interpolation sur les niveaux de pression du NMC
Note: See TracChangeset for help on using the changeset viewer.