SCALAPACK 2.2.2
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches
BI_IdringBR.c
Go to the documentation of this file.
1#include "Bdef.h"
2
3void BI_IdringBR(BLACSCONTEXT *ctxt, BLACBUFF *bp, SDRVPTR send, Int src, Int step)
4{
6 Int Np, Iam, msgid, dest;
7
8 Np = ctxt->scp->Np;
9 Iam = ctxt->scp->Iam;
10 dest = (Np + Iam + step) % Np;
11 msgid = Mscopeid(ctxt);
12 BI_Srecv(ctxt, BANYNODE, msgid, bp);
13 if (dest != src) send(ctxt, dest, msgid, bp);
14}
void BI_IdringBR(BLACSCONTEXT *ctxt, BLACBUFF *bp, SDRVPTR send, Int src, Int step)
Definition BI_IdringBR.c:3
void BI_Srecv(BLACSCONTEXT *ctxt, Int src, Int msgid, BLACBUFF *bp)
Definition BI_Srecv.c:3
#define Int
Definition Bconfig.h:22
#define Mscopeid(ctxt)
Definition Bdef.h:179
void(* SDRVPTR)(BLACSCONTEXT *, Int, Int, BLACBUFF *)
Definition Bdef.h:69
#define BANYNODE
Definition Bdef.h:76
BLACSSCOPE * scp
Definition Bdef.h:26
Int Np
Definition Bdef.h:17
Int Iam
Definition Bdef.h:17