forked from gravitationalwave01/eDDA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmpi_bcast_int2.f90
31 lines (29 loc) · 1.1 KB
/
mpi_bcast_int2.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
SUBROUTINE MPI_BCAST_INT2(INT2VAR,ICOUNT,IROOT,IERR)
IMPLICIT NONE
!-----------------------------------------------------------------------
INCLUDE 'mpif.h'
!-----------------------------------------------------------------------
! arguments
INTEGER*2 :: INT2VAR(*)
INTEGER :: ICOUNT,IERR,IROOT
!-----------------------------------------------------------------------
! Subroutine MPI_BCAST_INT2
! Purpose: to serve as a "jacket" for passing integer*2 variables
! to MPI_BCAST so that MPI_BCAST will be called with only a
! single variable type in a given fortran routine.
! B.T. Draine, Princeton University Observatory, 2004.04.09
! history
! 04.04.09 (BTD) first written
! 08.01.17 (BTD) f90 version
! end history
!-----------------------------------------------------------------------
!*** diagnostic
! write(0,*)'mpi_bcast_int2 ckpt 1: ICOUNT=',icount
!***
CALL MPI_BCAST(INT2VAR,ICOUNT,MPI_INTEGER2, &
IROOT,MPI_COMM_WORLD,IERR)
!*** diagnostic
! write(0,*)'mpi_bcast_int2 ckpt 2'
!***
RETURN
END SUBROUTINE MPI_BCAST_INT2