OpenRadioss
2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
BI_Srecv.c File Reference
#include "
Bdef.h
"
Go to the source code of this file.
Functions
void
BI_Srecv
(
BLACSCONTEXT
*ctxt,
Int
src,
Int
msgid,
BLACBUFF
*bp)
Function Documentation
◆
BI_Srecv()
void BI_Srecv
(
BLACSCONTEXT
*
ctxt
,
Int
src
,
Int
msgid
,
BLACBUFF
*
bp
)
Definition at line
3
of file
BI_Srecv.c
.
4
{
5
Int
i, info;
6
extern
MPI_Status *
BI_Stats
;
7
8
info=MPI_Recv(bp->
Buff
, bp->
N
, bp->
dtype
, src, msgid, ctxt->
scp
->
comm
,
BI_Stats
);
9
/*
10
* If we are doing our own buffering, need to determine the true length of
11
* the message just received
12
*/
13
#ifndef MpiBuffGood
14
if
(bp->
dtype
== MPI_PACKED)
15
{
16
info=MPI_Get_count(
BI_Stats
, MPI_PACKED, &i);
17
if
(i != MPI_UNDEFINED) bp->
N
= i;
18
else
BI_BlacsWarn
(
BI_ContxtNum
(ctxt), __LINE__, __FILE__,
19
"MPI_Get_count returned MPI_UNDEFINED.\n"
);
20
}
21
#endif
22
}
BI_Stats
MPI_Status * BI_Stats
Definition
BI_GlobalVars.c:14
Int
#define Int
Definition
Bconfig.h:22
BI_ContxtNum
Int BI_ContxtNum(BLACSCONTEXT *ctxt)
Definition
BI_ContxtNum.c:3
BI_BlacsWarn
void BI_BlacsWarn(Int ConTxt, Int line, char *file, char *form,...)
Definition
BI_BlacsWarn.c:3
bLaCbUfF::N
Int N
Definition
Bdef.h:61
bLaCbUfF::dtype
MPI_Datatype dtype
Definition
Bdef.h:60
bLaCbUfF::Buff
char * Buff
Definition
Bdef.h:56
bLaCsCoNtExT::scp
BLACSSCOPE * scp
Definition
Bdef.h:26
bLaCsScOpE::comm
MPI_Comm comm
Definition
Bdef.h:15
engine
extlib
scalapack-2.2.0
BLACS
SRC
BI_Srecv.c
Generated by
1.15.0