ScaLAPACK 2.1  2.1
ScaLAPACK: Scalable Linear Algebra PACKage
BI_Unpack.c
Go to the documentation of this file.
1 #include "Bdef.h"
2 
3 void BI_Unpack(BLACSCONTEXT *ctxt, BVOID *A, BLACBUFF *bp, MPI_Datatype Dtype)
4 {
5  int i=0, info, one=1;
6 
7 /*
8  * Some versions of mpich and its derivitives cannot handle 0 byte typedefs,
9  * so we have set MPI_BYTE as a flag for a 0 byte message
10  */
11 #ifdef ZeroByteTypeBug
12  if (Dtype == MPI_BYTE) return;
13 #endif
14  info=MPI_Unpack(bp->Buff, bp->Len, &i, A, one, Dtype, ctxt->scp->comm);
15  info=MPI_Type_free(&Dtype);
16 }
bLaCbUfF::Buff
char * Buff
Definition: Bdef.h:56
BI_Unpack
void BI_Unpack(BLACSCONTEXT *ctxt, BVOID *A, BLACBUFF *bp, MPI_Datatype Dtype)
Definition: BI_Unpack.c:3
BVOID
#define BVOID
Definition: Bdef.h:136
bLaCbUfF::Len
int Len
Definition: Bdef.h:57
bLaCbUfF
Definition: Bdef.h:54
bLaCsCoNtExT
Definition: Bdef.h:23
bLaCsCoNtExT::scp
BLACSSCOPE * scp
Definition: Bdef.h:26
Bdef.h
bLaCsScOpE::comm
MPI_Comm comm
Definition: Bdef.h:15