SCALAPACK 2.2.2
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ btrecv()

subroutine btrecv ( integer  dtype,
integer  n,
real, dimension(*)  buff,
integer  src,
integer  msgid 
)

Definition at line 206 of file btprim.f.

207*
208* -- BLACS tester (version 1.0) --
209* University of Tennessee
210* December 15, 1994
211*
212*
213* .. Scalar Arguments ..
214 INTEGER N, DTYPE, SRC, MSGID
215* ..
216* .. Array Arguments ..
217 REAL BUFF(*)
218* ..
219*
220* PURPOSE
221* =======
222* BTRECV: Globally blocking receive.
223*
224* Arguments
225* =========
226* DTYPE (input) INTEGER
227* Indicates what data type BUFF is:
228* 1 = RAW BYTES
229* 3 = INTEGER
230* 4 = SINGLE PRECISION REAL
231* 6 = DOUBLE PRECISION REAL
232* 5 = SINGLE PRECISION COMPLEX
233* 7 = DOUBLE PRECISION COMPLEX
234*
235* N (input) INTEGER
236* The number of elements of type DTYPE in BUFF.
237*
238* BUFF (output) INTEGER
239* The buffer to receive into.
240*
241* SRC (input) INTEGER
242* The source of the message.
243*
244* MSGID (input) INTEGER
245* The message ID.
246*
247* =====================================================================
248* ..
249* .. Local Scalars ..
250 INTEGER MPIDTYPE
251* ..
252* .. Include Files ..
253 include 'mpif.h'
254* ..
255* .. Local Arrays ..
256 INTEGER STAT(MPI_STATUS_SIZE)
257* ..
258* .. Common Blocks ..
259 COMMON /btmpi/ btcomm, ierr
260 INTEGER BTCOMM, IERR
261*
262 IF( dtype .EQ. 1 ) THEN
263 mpidtype = mpi_byte
264 ELSE IF( dtype .EQ. 3 ) THEN
265 mpidtype = mpi_integer
266 ELSE IF( dtype .EQ. 4 ) THEN
267 mpidtype = mpi_real
268 ELSE IF( dtype .EQ. 5 ) THEN
269 mpidtype = mpi_complex
270 ELSE IF( dtype .EQ. 6 ) THEN
271 mpidtype = mpi_double_precision
272 ELSE IF( dtype .EQ. 7 ) THEN
273 mpidtype = mpi_double_complex
274 END IF
275*
276 CALL mpi_recv( buff, n, mpidtype, src, 0, btcomm, stat, ierr )
277 IF (ierr.NE.0) CALL btmpierr("MPI_RECV", ierr)
278*
279 RETURN
280*
281* End of BTRECV
282*
subroutine btmpierr(rout, ierr0)
Definition btprim.f:362
Here is the call graph for this function:
Here is the caller graph for this function: