Changeset 5098 for LMDZ6/branches/Amaury_dev/libf/phylmdiso/physiq_mod.F90
- Timestamp:
- Jul 22, 2024, 6:53:44 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmdiso/physiq_mod.F90
r5091 r5098 95 95 USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_INCA 96 96 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 97 109 98 110 !USE cmp_seri_mod … … 111 123 #endif 112 124 113 114 USE geometry_mod, ONLY: longitude, latitude, boundslon, boundslat, ind_cell_glo115 USE time_phylmdz_mod, ONLY: ndays116 USE infotrac_phy, ONLY: nqCO2117 125 #ifdef REPROBUS 118 126 USE chem_rep, ONLY: Init_chem_rep_xjour, d_q_rep, d_ql_rep, d_qi_rep, & … … 121 129 USE strataer_emiss_mod, ONLY: strataer_emiss_init 122 130 #endif 123 USE time_phylmdz_mod, ONLY: annee_ref, day_ini, day_ref, start_time124 USE vertical_layers_mod, ONLY: aps, bps, ap, bp125 126 131 127 132 #ifdef CPP_RRTM … … 131 136 132 137 133 #ifdef CPP_StratAer134 138 USE phys_local_var_mod, ONLY: d_q_emiss 135 139 USE strataer_local_var_mod 136 140 USE strataer_nuc_mod, ONLY: strataer_nuc_init 137 141 USE strataer_emiss_mod, ONLY: strataer_emiss_init 138 #endif139 140 USE lmdz_xios, ONLY: xios_update_calendar, xios_context_finalize141 USE lmdz_xios, ONLY: xios_get_field_attr, xios_field_is_active, xios_context142 USE lmdz_xios, ONLY: xios_set_current_context143 USE wxios, ONLY: missing_val, using_xios144 145 #ifndef CPP_XIOS146 USE paramLMDZ_phy_mod147 #endif148 149 142 150 143 #ifdef ISO … … 1510 1503 #endif 1511 1504 1512 #ifdef CPP_StratAer 1505 IF (CPPKEY_STRATAER) THEN 1513 1506 CALL strataer_init 1514 1507 CALL strataer_nuc_init 1515 1508 CALL strataer_emiss_init 1516 #endif 1509 END IF 1517 1510 1518 1511 print*, '=================================================' … … 1928 1921 WRITE(lunout,*)'OK freq_outNMC(3)=',freq_outNMC(3) 1929 1922 1930 #ifndef CPP_XIOS 1923 IF (.NOT. using_xios) THEN 1931 1924 CALL ini_paramLMDZ_phy(phys_tstep,nid_ctesGCM) 1932 #endif 1925 END IF 1933 1926 1934 1927 #endif … … 5800 5793 ELSE 5801 5794 #ifdef CPP_RRTM 5802 #ifndef CPP_StratAer 5795 IF (.NOT. CPPKEY_STRATAER) THEN 5803 5796 !--prescribed strat aerosols 5804 5797 !--only in the case of non-interactive strat aerosols … … 5811 5804 CALL abort_physic(modname,abort_message,1) 5812 5805 ENDIF 5813 #endif 5806 END IF 5814 5807 #else 5815 5808 abort_message='You should compile with -rrtm if running ' & … … 5823 5816 ! 5824 5817 #ifdef CPP_RRTM 5825 #ifdef CPP_StratAer 5818 IF (CPPKEY_STRATER) THEN 5826 5819 !--compute stratospheric mask 5827 5820 CALL stratosphere_mask(missing_val, pphis, t_seri, pplay, latitude_deg) 5828 5821 !--interactive strat aerosols 5829 5822 CALL calcaerosolstrato_rrtm(pplay,t_seri,paprs,debut) 5830 #endif 5823 END IF 5831 5824 #endif 5832 5825 !--fin STRAT AEROSOL … … 6470 6463 IF (ok_qch4) THEN 6471 6464 ! d_q_ch4: H2O source from CH4 in MMR/s (mass mixing ratio/s or kg H2O/kg air/s) 6472 #ifdef CPP_StratAer 6465 IF (CPPKEY_STRATER) THEN 6473 6466 CALL stratH2O_methox(debut,paprs,d_q_ch4) 6474 #else 6467 ELSE 6475 6468 ! ECMWF routine METHOX 6476 6469 CALL METHOX(1,klon,klon,klev,q_seri,d_q_ch4,pplay) 6477 #endif 6470 END IF 6478 6471 ! add humidity tendency due to methane 6479 6472 d_q_ch4_dtime(:,:) = d_q_ch4(:,:)*phys_tstep … … 6494 6487 ! 6495 6488 ! 6496 #ifdef CPP_StratAer 6489 IF (CPPKEY_STRATER) THEN 6497 6490 IF (ok_qemiss) THEN 6498 6491 flh2o=1 … … 6537 6530 END SELECT ! emission scenario (flag_emit) 6538 6531 ENDIF 6539 #endif 6532 END IF 6540 6533 6541 6534 !=============================================================== … … 6997 6990 ENDDO 6998 6991 6999 #ifdef CPP_StratAer 6992 IF (CPPKEY_STRATER) THEN 7000 6993 IF (ok_qemiss) THEN 7001 6994 DO k = 1, klev … … 7003 6996 ENDDO 7004 6997 ENDIF 7005 #endif 6998 END IF 7006 6999 IF (ok_qch4) THEN 7007 7000 DO k = 1, klev … … 7334 7327 #endif 7335 7328 7336 #ifndef CPP_XIOS 7329 IF (.NOT. using_xios) THEN 7337 7330 CALL write_paramLMDZ_phy(itap,nid_ctesGCM,ok_sync) 7338 #endif 7331 END IF 7339 7332 7340 7333 #endif
Note: See TracChangeset
for help on using the changeset viewer.