Changeset 2893
- Timestamp:
- Mar 14, 2018 4:20:52 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_grid.f90
r2892 r2893 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Revise informative message concerning filtered topography (1 grid-point 28 ! holes). 29 ! 30 ! 2892 2018-03-14 15:06:29Z suehring 27 31 ! Bugfix, uninitialized array in case of single_building. 28 32 ! … … 1160 1164 IMPLICIT NONE 1161 1165 1166 LOGICAL :: filled = .FALSE. !< flag indicating if holes were filled 1167 1162 1168 INTEGER(iwp) :: i !< running index along x-direction 1163 INTEGER(iwp) :: it !< counter for number of iterations1164 1169 INTEGER(iwp) :: j !< running index along y-direction 1165 1170 INTEGER(iwp) :: k !< running index along z-direction … … 1179 1184 1180 1185 num_hole = 99999 1181 it = 01182 1186 DO WHILE ( num_hole > 0 ) 1183 1187 … … 1200 1204 ENDIF 1201 1205 1202 it = it + 11203 1206 num_hole_l = 0 1204 1207 DO i = nxl, nxr … … 1301 1304 num_hole = num_hole_l 1302 1305 #endif 1303 1304 ! 1305 !-- Create an informative message if any holes were filled. 1306 IF ( num_hole > 0 ) THEN 1307 WRITE( message_string, * ) num_hole, 'hole(s) resolved by only '// & 1308 'one grid point were filled at ', it, & 1309 'th iteration ' 1310 CALL message( 'init_grid', 'PA0430', 0, 0, 0, 6, 0 ) 1311 ENDIF 1312 1306 IF ( num_hole > 0 .AND. .NOT. filled ) filled = .TRUE. 1313 1307 1314 1308 ENDDO 1309 ! 1310 !-- Create an informative message if any holes were filled. 1311 IF ( filled ) THEN 1312 WRITE( message_string, * ) 'Topography was filtered, i.e. holes ' // & 1313 'resolved by only one grid point ' // & 1314 'were filled during initialization.' 1315 CALL message( 'init_grid', 'PA0430', 0, 0, 0, 6, 0 ) 1316 ENDIF 1315 1317 1316 1318 DEALLOCATE( topo_tmp ) … … 1534 1536 INTEGER(iwp) :: cys !< index for south canyon wall 1535 1537 INTEGER(iwp) :: i !< index variable along x 1536 INTEGER(iwp) :: it !< Number of iterations required to fill all problematic holes1537 1538 INTEGER(iwp) :: j !< index variable along y 1538 1539 INTEGER(iwp) :: k !< index variable along z
Note: See TracChangeset
for help on using the changeset viewer.