Changeset 3988 for LMDZ6/trunk/libf
- Timestamp:
- Sep 30, 2021, 9:05:18 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/physiq_mod.F90
r3987 r3988 1743 1743 ENDDO 1744 1744 ENDDO 1745 1745 ELSE 1746 1746 pbl_tke(:,:,is_ave) = 0. !ym missing init : maybe must be initialized in the same way that for klon_glo==1 ?? 1747 1747 !>jyg … … 1923 1923 !$OMP BARRIER 1924 1924 missing_val=missing_val_omp 1925 ! 1926 ! Now we activate some double radiation call flags only if some 1927 ! diagnostics are requested, otherwise there is no point in doing this 1928 IF (is_master) THEN 1929 !--setting up swaero_diag to TRUE in XIOS case 1930 IF (xios_field_is_active("topswad").OR.xios_field_is_active("topswad0").OR. & 1931 xios_field_is_active("solswad").OR.xios_field_is_active("solswad0").OR. & 1932 xios_field_is_active("topswai").OR.xios_field_is_active("solswai").OR. & 1933 (iflag_rrtm==1.AND.(xios_field_is_active("toplwad").OR.xios_field_is_active("toplwad0").OR. & 1934 xios_field_is_active("sollwad").OR.xios_field_is_active("sollwad0")))) & 1935 !!!--for now these fields are not in the XML files so they are omitted 1936 !!! xios_field_is_active("toplwai").OR.xios_field_is_active("sollwai") !))) & 1937 swaero_diag=.TRUE. 1938 1939 !--setting up swaerofree_diag to TRUE in XIOS case 1940 IF (xios_field_is_active("SWdnSFCcleanclr").OR.xios_field_is_active("SWupSFCcleanclr").OR. & 1941 xios_field_is_active("SWupTOAcleanclr").OR.xios_field_is_active("rsucsaf").OR. & 1942 xios_field_is_active("rsdcsaf") .OR. xios_field_is_active("LWdnSFCcleanclr").OR. & 1943 xios_field_is_active("LWupTOAcleanclr")) & 1944 swaerofree_diag=.TRUE. 1945 1946 !--setting up dryaod_diag to TRUE in XIOS case 1947 DO naero = 1, naero_tot-1 1948 IF (xios_field_is_active("dryod550_"//name_aero_tau(naero))) dryaod_diag=.TRUE. 1949 ENDDO 1950 ! 1951 !--setting up ok_4xCO2atm to TRUE in XIOS case 1952 IF (xios_field_is_active("rsut4co2").OR.xios_field_is_active("rlut4co2").OR. & 1953 xios_field_is_active("rsutcs4co2").OR.xios_field_is_active("rlutcs4co2").OR. & 1954 xios_field_is_active("rsu4co2").OR.xios_field_is_active("rsucs4co2").OR. & 1955 xios_field_is_active("rsd4co2").OR.xios_field_is_active("rsdcs4co2").OR. & 1956 xios_field_is_active("rlu4co2").OR.xios_field_is_active("rlucs4co2").OR. & 1957 xios_field_is_active("rld4co2").OR.xios_field_is_active("rldcs4co2")) & 1958 ok_4xCO2atm=.TRUE. 1959 ENDIF 1960 !$OMP BARRIER 1961 CALL bcast(swaero_diag) 1962 CALL bcast(swaerofree_diag) 1963 CALL bcast(dryaod_diag) 1964 CALL bcast(ok_4xCO2atm) 1965 WRITE (lunout,*)'ok_4xCO2atm= ',swaero_diag, swaerofree_diag, dryaod_diag, ok_4xCO2atm 1925 1966 #endif 1926 1927 1967 ! 1928 1968 CALL printflag( tabcntr0,radpas,ok_journe, & 1929 1969 ok_instan, ok_region ) 1930 1970 ! 1931 1971 ! 1932 !1933 1972 ! Prescrire l'ozone dans l'atmosphere 1934 !1935 1973 ! 1936 1974 !c DO i = 1, klon … … 1988 2026 #endif 1989 2027 ENDIF 2028 ! 1990 2029 IF (type_trac == 'repr') THEN 1991 2030 #ifdef REPROBUS … … 2036 2075 SFRWL(6)=3.02191470E-02 2037 2076 END SELECT 2038 2039 2040 2077 !albedo SB <<< 2041 2078 … … 2160 2197 ! RomP <<< 2161 2198 ENDIF 2162 2163 2199 ! 2164 2200 ! Ne pas affecter les valeurs entrees de u, v, h, et q … … 5173 5209 #endif 5174 5210 5175 ! Pour XIOS : On remet des variables a .false. apres un premier appel5176 IF (debut) THEN5177 #ifdef CPP_XIOS5178 swaero_diag=.FALSE.5179 swaerofree_diag=.FALSE.5180 dryaod_diag=.FALSE.5181 ok_4xCO2atm= .FALSE.5182 ! write (lunout,*)'ok_4xCO2atm= ',swaero_diag, swaerofree_diag, dryaod_diag, ok_4xCO2atm5183 5184 IF (is_master) THEN5185 !--setting up swaero_diag to TRUE in XIOS case5186 IF (xios_field_is_active("topswad").OR.xios_field_is_active("topswad0").OR. &5187 xios_field_is_active("solswad").OR.xios_field_is_active("solswad0").OR. &5188 xios_field_is_active("topswai").OR.xios_field_is_active("solswai").OR. &5189 (iflag_rrtm==1.AND.(xios_field_is_active("toplwad").OR.xios_field_is_active("toplwad0").OR. &5190 xios_field_is_active("sollwad").OR.xios_field_is_active("sollwad0")))) &5191 !!!--for now these fields are not in the XML files so they are omitted5192 !!! xios_field_is_active("toplwai").OR.xios_field_is_active("sollwai") !))) &5193 swaero_diag=.TRUE.5194 5195 !--setting up swaerofree_diag to TRUE in XIOS case5196 IF (xios_field_is_active("SWdnSFCcleanclr").OR.xios_field_is_active("SWupSFCcleanclr").OR. &5197 xios_field_is_active("SWupTOAcleanclr").OR.xios_field_is_active("rsucsaf").OR. &5198 xios_field_is_active("rsdcsaf") .OR. xios_field_is_active("LWdnSFCcleanclr").OR. &5199 xios_field_is_active("LWupTOAcleanclr")) &5200 swaerofree_diag=.TRUE.5201 5202 !--setting up dryaod_diag to TRUE in XIOS case5203 DO naero = 1, naero_tot-15204 IF (xios_field_is_active("dryod550_"//name_aero_tau(naero))) dryaod_diag=.TRUE.5205 ENDDO5206 !5207 !--setting up ok_4xCO2atm to TRUE in XIOS case5208 IF (xios_field_is_active("rsut4co2").OR.xios_field_is_active("rlut4co2").OR. &5209 xios_field_is_active("rsutcs4co2").OR.xios_field_is_active("rlutcs4co2").OR. &5210 xios_field_is_active("rsu4co2").OR.xios_field_is_active("rsucs4co2").OR. &5211 xios_field_is_active("rsd4co2").OR.xios_field_is_active("rsdcs4co2").OR. &5212 xios_field_is_active("rlu4co2").OR.xios_field_is_active("rlucs4co2").OR. &5213 xios_field_is_active("rld4co2").OR.xios_field_is_active("rldcs4co2")) &5214 ok_4xCO2atm=.TRUE.5215 ENDIF5216 !$OMP BARRIER5217 CALL bcast(swaero_diag)5218 CALL bcast(swaerofree_diag)5219 CALL bcast(dryaod_diag)5220 CALL bcast(ok_4xCO2atm)5221 ! write (lunout,*)'ok_4xCO2atm= ',swaero_diag, swaerofree_diag, dryaod_diag, ok_4xCO2atm5222 #endif5223 ENDIF5224 5225 5211 !==================================================================== 5226 5212 ! Arret du modele apres hgardfou en cas de detection d'un
Note: See TracChangeset
for help on using the changeset viewer.