mp_file_read_at_all_d Subroutine

private subroutine mp_file_read_at_all_d(fh, offset, msg)

Arguments

TypeIntentOptionalAttributesName
integer, intent(in) :: fh
integer(kind=file_offset), intent(in) :: offset
real(kind=real_8), intent(out) :: msg

Contents

Source Code


Source Code

      SUBROUTINE mp_file_read_at_all_d (fh, offset, msg)
         REAL(kind=real_8), INTENT(OUT)                     :: msg
         INTEGER, INTENT(IN)                        :: fh
         INTEGER(kind=file_offset), INTENT(IN)      :: offset

#if defined(__parallel)
         CHARACTER(LEN=*), PARAMETER :: routineN = 'mp_file_read_at_all_d'

         INTEGER                                    :: ierr

         ierr = 0
         CALL MPI_FILE_READ_AT_ALL(fh, offset, msg, 1, MPI_DOUBLE_PRECISION, MPI_STATUS_IGNORE, ierr)
         IF (ierr .NE. 0) &
            DBCSR_ABORT("mpi_file_read_at_all_d @ "//routineN)
#else
         READ (UNIT=fh, POS=offset + 1) msg
#endif
      END SUBROUTINE mp_file_read_at_all_d