- Timestamp:
- Feb 28, 2019 12:19:33 PM (6 years ago)
- Location:
- palm/trunk/SOURCE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/prognostic_equations.f90
r3761 r3771 25 25 ! ----------------- 26 26 ! $Id$ 27 ! preprocessor directivs fro rrtmg added 28 ! 29 ! 3761 2019-02-25 15:31:42Z raasch 27 30 ! unused variable removed 28 31 ! … … 425 428 ONLY: cthf, pcm_tendency 426 429 430 #if defined( __rrtmg ) 427 431 USE radiation_model_mod, & 428 432 ONLY: radiation, radiation_tendency, & 429 433 skip_time_do_radiation 434 #endif 430 435 431 436 USE salsa_mod, & … … 943 948 ENDIF 944 949 950 #if defined( __rrtmg ) 945 951 ! 946 952 !-- If required, add tendency due to radiative heating/cooling … … 949 955 CALL radiation_tendency ( i, j, tend ) 950 956 ENDIF 951 957 #endif 952 958 953 959 CALL module_interface_actions( i, j, 'pt-tendency' ) … … 1957 1963 ENDIF 1958 1964 1965 #if defined( __rrtmg ) 1959 1966 ! 1960 1967 !-- If required, add tendency due to radiative heating/cooling … … 1963 1970 CALL radiation_tendency ( tend ) 1964 1971 ENDIF 1972 #endif 1965 1973 1966 1974 CALL module_interface_actions( 'pt-tendency' ) -
palm/trunk/SOURCE/radiation_model_mod.f90
r3769 r3771 23 23 ! Current revisions: 24 24 ! ------------------ 25 ! 25 ! 26 26 ! 27 27 ! Former revisions: 28 28 ! ----------------- 29 29 ! $Id$ 30 ! rrtmg preprocessor for directives moved/added, save attribute added to temporary 31 ! pointers to avoid compiler warnings about outlived pointer targets, 32 ! statement added to avoid compiler warning about unused variable 33 ! 34 ! 3769 2019-02-28 10:16:49Z moh.hefny 30 35 ! removed unused variables and subroutine radiation_radflux_gridbox 31 36 ! … … 1219 1224 END INTERFACE radiation_rrtmg 1220 1225 1226 #if defined( __rrtmg ) 1221 1227 INTERFACE radiation_tendency 1222 1228 MODULE PROCEDURE radiation_tendency 1223 1229 MODULE PROCEDURE radiation_tendency_ij 1224 1230 END INTERFACE radiation_tendency 1231 #endif 1225 1232 1226 1233 INTERFACE radiation_rrd_local … … 1267 1274 radiation_check_parameters, radiation_control, & 1268 1275 radiation_header, radiation_init, radiation_parin, & 1269 radiation_3d_data_averaging, radiation_tendency,&1276 radiation_3d_data_averaging, & 1270 1277 radiation_data_output_2d, radiation_data_output_3d, & 1271 1278 radiation_define_netcdf_grid, radiation_wrd_local, & … … 1274 1281 radiation_interaction, radiation_interaction_init, & 1275 1282 radiation_read_svf, radiation_presimulate_solar_pos 1276 1277 1283 1278 1284 … … 1300 1306 1301 1307 #if defined ( __rrtmg ) 1302 PUBLIC r rtm_aldif, rrtm_aldir, rrtm_asdif, rrtm_asdir1308 PUBLIC radiation_tendency, rrtm_aldif, rrtm_aldir, rrtm_asdif, rrtm_asdir 1303 1309 #endif 1304 1310 … … 1483 1489 1484 1490 1485 INTEGER(iwp), INTENT(IN) :: dots_max 1486 INTEGER(iwp), INTENT(INOUT) :: dots_num 1491 INTEGER(iwp), INTENT(IN) :: dots_max 1492 INTEGER(iwp), INTENT(INOUT) :: dots_num 1493 1494 ! 1495 !-- Next line is just to avoid compiler warning about unused variable. 1496 IF ( dots_max == 0 ) CONTINUE 1487 1497 1488 1498 ! … … 4881 4891 !> Cache-optimized version. 4882 4892 !------------------------------------------------------------------------------! 4893 #if defined( __rrtmg ) 4883 4894 SUBROUTINE radiation_tendency_ij ( i, j, tend ) 4884 4895 … … 4890 4901 4891 4902 IF ( radiation_scheme == 'rrtmg' ) THEN 4892 #if defined ( __rrtmg )4893 4903 ! 4894 4904 !-- Calculate tendency based on heating rate … … 4897 4907 * d_exner(k) * d_seconds_hour 4898 4908 ENDDO 4909 4910 ENDIF 4911 4912 END SUBROUTINE radiation_tendency_ij 4899 4913 #endif 4900 ENDIF4901 4902 END SUBROUTINE radiation_tendency_ij4903 4914 4904 4915 … … 4909 4920 !> Vector-optimized version 4910 4921 !------------------------------------------------------------------------------! 4922 #if defined( __rrtmg ) 4911 4923 SUBROUTINE radiation_tendency ( tend ) 4912 4924 … … 4921 4933 4922 4934 IF ( radiation_scheme == 'rrtmg' ) THEN 4923 #if defined ( __rrtmg )4924 4935 ! 4925 4936 !-- Calculate tendency based on heating rate … … 4933 4944 ENDDO 4934 4945 ENDDO 4946 ENDIF 4947 4948 END SUBROUTINE radiation_tendency 4935 4949 #endif 4936 ENDIF4937 4938 4939 END SUBROUTINE radiation_tendency4940 4950 4941 4951 !------------------------------------------------------------------------------! … … 5899 5909 REAL(wp) :: mrl 5900 5910 #if defined( __parallel ) 5901 INTEGER(iwp), DIMENSION(:), POINTER 5911 INTEGER(iwp), DIMENSION(:), POINTER, SAVE :: gridsurf_rma !< fortran pointer, but lower bounds are 1 5902 5912 TYPE(c_ptr) :: gridsurf_rma_p !< allocated c pointer 5903 5913 INTEGER(iwp) :: minfo !< MPI RMA window info handle … … 6445 6455 INTEGER(iwp) :: max_track_len !< maximum 2d track length 6446 6456 INTEGER(iwp) :: minfo 6447 REAL(wp), DIMENSION(:), POINTER 6457 REAL(wp), DIMENSION(:), POINTER, SAVE :: lad_s_rma !< fortran 1D pointer 6448 6458 TYPE(c_ptr) :: lad_s_rma_p !< allocated c pointer 6449 6459 #if defined( __parallel )
Note: See TracChangeset
for help on using the changeset viewer.