- Timestamp:
- Jul 23, 2020 8:15:59 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/restart_data_mpi_io_mod.f90
r4619 r4621 25 25 ! ----------------- 26 26 ! $Id$ 27 ! bugfixes for serial (non-parallel) mode 28 ! 29 ! 4619 2020-07-22 13:21:28Z raasch 27 30 ! unused variable removed 28 31 ! … … 751 754 INTEGER(iwp) :: i !< 752 755 INTEGER(iwp) :: j !< 756 #if defined( __parallel ) 753 757 INTEGER(KIND=MPI_ADDRESS_KIND) :: winsize !< size of RMA window 758 #else 759 INTEGER(idp) :: winsize 760 #endif 754 761 755 762 ! … … 800 807 ENDDO 801 808 ELSE 809 #if defined( __parallel ) 802 810 color = MPI_UNDEFINED 811 #endif 803 812 pe_active_for_read = .FALSE. 804 813 ENDIF … … 1075 1084 INTEGER(iwp) :: rem_pe !< 1076 1085 1086 #if defined( __parallel ) 1077 1087 INTEGER(KIND=MPI_ADDRESS_KIND) :: rem_offs !< 1088 #else 1089 INTEGER(idp) :: rem_offs 1090 #endif 1078 1091 1079 1092 … … 1085 1098 1086 1099 IF ( pe_active_for_read ) THEN 1087 1100 #if defined( __parallel ) 1088 1101 CALL MPI_FILE_SET_VIEW( fh, array_position, MPI_REAL, ft_2d, 'native', MPI_INFO_NULL, & 1089 1102 ierr ) 1090 1103 CALL MPI_FILE_READ_ALL( fh, array_2d, SIZE( array_2d ), MPI_REAL, status, ierr ) 1091 1104 #endif 1092 1105 DO i = nxl, nxr 1093 1106 rmabuf_2d(nys:nyn,i) = array_2d(i,nys:nyn) … … 1293 1306 INTEGER(iwp) :: rem_pe !< 1294 1307 1308 #if defined( __parallel ) 1295 1309 INTEGER(KIND=MPI_ADDRESS_KIND) :: rem_offs !< 1310 #else 1311 INTEGER(idp) :: rem_offs 1312 #endif 1296 1313 1297 1314 … … 1299 1316 1300 1317 IF ( pe_active_for_read ) THEN 1318 #if defined( __parallel ) 1301 1319 CALL MPI_FILE_SET_VIEW( fh, array_position, MPI_INTEGER, ft_2di_nb, 'native', & 1302 1320 MPI_INFO_NULL, ierr ) 1303 1321 CALL MPI_FILE_READ_ALL( fh, array_2di, SIZE( array_2di ), MPI_INTEGER, status, ierr ) 1304 1322 #endif 1305 1323 DO i = nxl, nxr 1306 1324 rmabuf_2di(nys:nyn,i) = array_2di(i,nys:nyn) … … 1486 1504 INTEGER(iwp) :: rem_pe !< 1487 1505 1506 #if defined( __parallel ) 1488 1507 INTEGER(KIND=MPI_ADDRESS_KIND) :: rem_offs !< 1508 #else 1509 INTEGER(idp) :: rem_offs 1510 #endif 1489 1511 1490 1512 … … 1492 1514 1493 1515 IF ( pe_active_for_read ) THEN 1516 #if defined( __parallel ) 1494 1517 CALL MPI_FILE_SET_VIEW( fh, array_position, MPI_REAL, ft_3d, 'native', MPI_INFO_NULL, & 1495 1518 ierr ) 1496 1519 CALL MPI_FILE_READ_ALL( fh, array_3d, SIZE( array_3d ), MPI_REAL, status, ierr ) 1497 1520 #endif 1498 1521 DO i = nxl, nxr 1499 1522 rmabuf_3d(:,nys:nyn,i) = array_3d(:,i,nys:nyn) … … 2696 2719 INTEGER(iwp) :: rem_pe !< 2697 2720 2721 #if defined( __parallel ) 2698 2722 INTEGER(KIND=MPI_ADDRESS_KIND) :: rem_offs !< 2723 #else 2724 INTEGER(idp) :: rem_offs 2725 #endif 2699 2726 2700 2727 LOGICAL :: write_done !< … … 2757 2784 #else 2758 2785 CALL posix_lseek( fh, disp_f ) 2759 CALL posix_read( fh, rmabuf_2d(j_f ,i_f), nr_bytes_f )2786 CALL posix_read( fh, rmabuf_2d(j_f:,i_f:), nr_bytes_f ) 2760 2787 #endif 2761 2788 … … 2835 2862 ENDIF 2836 2863 #else 2837 data(m_ tart_index(j,i)) = array_2d(i_remote,j_remote)2864 data(m_start_index(j,i)) = array_2d(i_remote,j_remote) 2838 2865 #endif 2839 2866 ENDDO … … 3150 3177 CALL MPI_FILE_CLOSE( fhs, ierr ) 3151 3178 ENDIF 3152 #endif3153 3179 ! 3154 3180 !-- Free RMA windows … … 3158 3184 CALL MPI_WIN_FREE( rmawin_3d, ierr ) 3159 3185 ENDIF 3186 #endif 3160 3187 3161 3188 IF (.NOT. pe_active_for_read ) RETURN
Note: See TracChangeset
for help on using the changeset viewer.