Changeset 4617 for palm/trunk/SOURCE/read_restart_data_mod.f90
- Timestamp:
- Jul 22, 2020 9:48:50 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/read_restart_data_mod.f90
r4590 r4617 25 25 ! ----------------- 26 26 ! $Id$ 27 ! check, if boundary conditions in the prerun are both set to cyclic 28 ! 29 ! 4590 2020-07-06 14:34:59Z suehring 27 30 ! Bugfix in allocation of hom and hom_sum in case of mpi-io restart when 28 31 ! chemistry or salsa are employed … … 1176 1179 1177 1180 CHARACTER (LEN=10) :: version_on_file 1181 CHARACTER (LEN=20) :: bc_lr_on_file 1182 CHARACTER (LEN=20) :: bc_ns_on_file 1178 1183 CHARACTER (LEN=20) :: momentum_advec_check 1179 1184 CHARACTER (LEN=20) :: scalar_advec_check … … 1308 1313 ENDIF 1309 1314 1315 CASE ( 'bc_lr' ) 1316 READ ( 13 ) bc_lr_on_file 1317 IF ( TRIM( bc_lr_on_file ) /= 'cyclic' ) THEN 1318 message_string = 'bc_lr in the prerun was set /= "cyclic"' 1319 CALL message( 'rrd_read_parts_of_global', 'PA0498', 1, 2, 0, 6, 0 ) 1320 ENDIF 1321 1322 CASE ( 'bc_ns' ) 1323 READ ( 13 ) bc_ns_on_file 1324 IF ( TRIM( bc_ns_on_file ) /= 'cyclic' ) THEN 1325 message_string = 'bc_ns in the prerun was set /= "cyclic"' 1326 CALL message( 'rrd_read_parts_of_global', 'PA0498', 1, 2, 0, 6, 0 ) 1327 ENDIF 1328 1310 1329 CASE ( 'hom' ) 1311 1330 ALLOCATE( hom_on_file(0:nz+1,2,pr_palm+max_pr_user_on_file, & … … 1445 1464 ENDIF 1446 1465 1447 CALL rrd_mpi_io( 'nx', nx_on_file ) 1448 CALL rrd_mpi_io( 'ny', ny_on_file ) 1449 CALL rrd_mpi_io_global_array( 'ref_state', ref_state ) 1466 CALL rrd_mpi_io( 'bc_lr', bc_lr_on_file ) 1467 CALL rrd_mpi_io( 'bc_ns', bc_ns_on_file ) 1468 IF ( TRIM( bc_lr_on_file ) /= 'cyclic' .OR. TRIM( bc_ns_on_file ) /= 'cyclic' ) THEN 1469 message_string = 'bc_lr and/or bc_ns in the prerun was set /= "cyclic"' 1470 CALL message( 'rrd_read_parts_of_global', 'PA0498', 1, 2, 0, 6, 0 ) 1471 ENDIF 1450 1472 1451 1473 scalar_advec_check = scalar_advec … … 1457 1479 CALL message( 'rrd_read_parts_of_global', 'PA0101', 1, 2, 0, 6, 0 ) 1458 1480 ENDIF 1481 1482 CALL rrd_mpi_io( 'nx', nx_on_file ) 1483 CALL rrd_mpi_io( 'ny', ny_on_file ) 1484 CALL rrd_mpi_io_global_array( 'ref_state', ref_state ) 1459 1485 1460 1486 ! … … 2270 2296 2271 2297 ! 2272 !-- Read global restart data using MPI-IO2298 !-- Read local restart data using MPI-IO 2273 2299 ! 2274 2300 !-- Open the MPI-IO restart file.
Note: See TracChangeset
for help on using the changeset viewer.