Ignore:
Timestamp:
Jul 22, 2024, 6:53:44 PM (4 months ago)
Author:
abarral
Message:

Remove CRAY key (obsolete calls to functions that don't exist anymore, bugs in some implementations, irrelevant now)
Replace usage of CPP_XIOS key by using_xios logical
Remove always unused testcpu bits
Replace most uses of CPP_StratAer by the corresponding logical defined in lmdz_cppkeys_wrapper.F90 [this breaks iso compilation because phyiso doesn't define all aerosols - to be fixed later]
Replaces uses of include "yomcst.h" by the lmdz_yomcst.f90 module in .[fF]90 files

File:
1 edited

Legend:

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

    r5091 r5098  
    9595    USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_INCA
    9696
     97    USE geometry_mod,      ONLY: longitude, latitude, boundslon, boundslat, ind_cell_glo
     98    USE time_phylmdz_mod,  ONLY: ndays
     99    USE infotrac_phy,      ONLY: nqCO2
     100
     101    USE time_phylmdz_mod,    ONLY: annee_ref, day_ini, day_ref, start_time
     102    USE vertical_layers_mod, ONLY: aps, bps, ap, bp
     103
     104    USE lmdz_xios, ONLY: xios_update_calendar, xios_context_finalize, xios_get_field_attr, &
     105            xios_field_is_active, xios_context, xios_set_current_context
     106    USE wxios, ONLY: missing_val, using_xios
     107    USE paramLMDZ_phy_mod
     108
    97109
    98110    !USE cmp_seri_mod
     
    111123#endif
    112124
    113 
    114     USE geometry_mod,      ONLY: longitude, latitude, boundslon, boundslat, ind_cell_glo
    115     USE time_phylmdz_mod,  ONLY: ndays
    116     USE infotrac_phy,      ONLY: nqCO2
    117125#ifdef REPROBUS
    118126    USE chem_rep, ONLY: Init_chem_rep_xjour, d_q_rep, d_ql_rep, d_qi_rep, &
     
    121129    USE strataer_emiss_mod, ONLY: strataer_emiss_init
    122130#endif
    123     USE time_phylmdz_mod,    ONLY: annee_ref, day_ini, day_ref, start_time
    124     USE vertical_layers_mod, ONLY: aps, bps, ap, bp
    125 
    126131
    127132#ifdef CPP_RRTM
     
    131136
    132137
    133 #ifdef CPP_StratAer
    134138    USE phys_local_var_mod, ONLY: d_q_emiss
    135139    USE strataer_local_var_mod
    136140    USE strataer_nuc_mod, ONLY: strataer_nuc_init
    137141    USE strataer_emiss_mod, ONLY: strataer_emiss_init
    138 #endif
    139 
    140     USE lmdz_xios, ONLY: xios_update_calendar, xios_context_finalize
    141     USE lmdz_xios, ONLY: xios_get_field_attr, xios_field_is_active, xios_context
    142     USE lmdz_xios, ONLY: xios_set_current_context
    143     USE wxios, ONLY: missing_val, using_xios
    144 
    145 #ifndef CPP_XIOS
    146     USE paramLMDZ_phy_mod
    147 #endif
    148 
    149142
    150143#ifdef ISO
     
    15101503#endif
    15111504
    1512 #ifdef CPP_StratAer
     1505IF (CPPKEY_STRATAER) THEN
    15131506       CALL strataer_init
    15141507       CALL strataer_nuc_init
    15151508       CALL strataer_emiss_init
    1516 #endif
     1509END IF
    15171510
    15181511       print*, '================================================='
     
    19281921       WRITE(lunout,*)'OK freq_outNMC(3)=',freq_outNMC(3)
    19291922
    1930 #ifndef CPP_XIOS
     1923    IF (.NOT. using_xios) THEN
    19311924       CALL ini_paramLMDZ_phy(phys_tstep,nid_ctesGCM)
    1932 #endif
     1925END IF
    19331926
    19341927#endif
     
    58005793          ELSE
    58015794#ifdef CPP_RRTM
    5802 #ifndef CPP_StratAer
     5795IF (.NOT. CPPKEY_STRATAER) THEN
    58035796          !--prescribed strat aerosols
    58045797          !--only in the case of non-interactive strat aerosols
     
    58115804             CALL abort_physic(modname,abort_message,1)
    58125805            ENDIF
    5813 #endif
     5806END IF
    58145807#else
    58155808             abort_message='You should compile with -rrtm if running ' &
     
    58235816!
    58245817#ifdef CPP_RRTM
    5825 #ifdef CPP_StratAer
     5818IF (CPPKEY_STRATER) THEN
    58265819       !--compute stratospheric mask
    58275820       CALL stratosphere_mask(missing_val, pphis, t_seri, pplay, latitude_deg)
    58285821       !--interactive strat aerosols
    58295822       CALL calcaerosolstrato_rrtm(pplay,t_seri,paprs,debut)
    5830 #endif
     5823END IF
    58315824#endif
    58325825       !--fin STRAT AEROSOL
     
    64706463    IF (ok_qch4) THEN
    64716464!      d_q_ch4: H2O source from CH4 in MMR/s (mass mixing ratio/s or kg H2O/kg air/s)
    6472 #ifdef CPP_StratAer
     6465IF (CPPKEY_STRATER) THEN
    64736466       CALL stratH2O_methox(debut,paprs,d_q_ch4)
    6474 #else
     6467ELSE
    64756468!      ECMWF routine METHOX
    64766469       CALL METHOX(1,klon,klon,klev,q_seri,d_q_ch4,pplay)
    6477 #endif
     6470END IF
    64786471       ! add humidity tendency due to methane
    64796472       d_q_ch4_dtime(:,:) = d_q_ch4(:,:)*phys_tstep
     
    64946487    !
    64956488    !
    6496 #ifdef CPP_StratAer
     6489IF (CPPKEY_STRATER) THEN
    64976490    IF (ok_qemiss) THEN
    64986491       flh2o=1
     
    65376530       END SELECT ! emission scenario (flag_emit)
    65386531    ENDIF
    6539 #endif
     6532END IF
    65406533
    65416534!===============================================================
     
    69976990    ENDDO
    69986991
    6999 #ifdef CPP_StratAer
     6992IF (CPPKEY_STRATER) THEN
    70006993    IF (ok_qemiss) THEN
    70016994       DO k = 1, klev
     
    70036996       ENDDO
    70046997    ENDIF
    7005 #endif
     6998END IF
    70066999    IF (ok_qch4) THEN
    70077000       DO k = 1, klev
     
    73347327#endif
    73357328
    7336 #ifndef CPP_XIOS
     7329    IF (.NOT. using_xios) THEN
    73377330      CALL write_paramLMDZ_phy(itap,nid_ctesGCM,ok_sync)
    7338 #endif
     7331END IF
    73397332
    73407333#endif
Note: See TracChangeset for help on using the changeset viewer.