SCALAPACK
2.2.2
LAPACK: Linear Algebra PACKage
Toggle main menu visibility
Main Page
Data Types
Data Types List
Data Type Index
Data Fields
All
a
b
c
d
f
g
i
l
m
n
o
p
r
s
t
u
z
Variables
a
b
c
d
f
g
i
l
m
n
o
p
r
s
t
u
z
Files
File List
File Members
All
!
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Functions/Subroutines
!
a
b
c
d
f
g
i
j
k
l
m
n
p
r
s
t
x
z
Variables
Typedefs
a
b
c
f
g
h
m
s
t
v
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
y
z
•
All
Classes
Files
Functions
Variables
Typedefs
Macros
Loading...
Searching...
No Matches
BI_SringBR.c
Go to the documentation of this file.
1
#include "
Bdef.h
"
2
3
void
BI_SringBR
(
BLACSCONTEXT
*ctxt,
BLACBUFF
*bp,
SDRVPTR
send,
Int
src)
4
{
5
void
BI_Srecv
(
BLACSCONTEXT
*,
Int
,
Int
,
BLACBUFF
*);
6
7
Int
mydist;
/* my distance from source */
8
Int
Np, Iam, msgid, rightedge;
9
10
Np = ctxt->
scp
->
Np
;
11
Iam = ctxt->
scp
->
Iam
;
12
msgid =
Mscopeid
(ctxt);
13
14
mydist = (Np + Iam - src) % Np;
15
rightedge = Np/2;
16
BI_Srecv
(ctxt,
BANYNODE
, msgid, bp);
17
18
/*
19
* If I'm between source & right edge of split ring, send to right
20
*/
21
if
(mydist < rightedge)
22
send(ctxt, (Iam+1)%Np, msgid, bp);
23
/*
24
* If I'm between source and left edge of split ring, send to left
25
*/
26
else
if
(mydist > rightedge+1)
27
send(ctxt, (Np+Iam-1)%Np, msgid, bp);
28
}
3
void
BI_SringBR
(
BLACSCONTEXT
*ctxt,
BLACBUFF
*bp,
SDRVPTR
send,
Int
src) {
…
}
BI_Srecv
void BI_Srecv(BLACSCONTEXT *ctxt, Int src, Int msgid, BLACBUFF *bp)
Definition
BI_Srecv.c:3
BI_SringBR
void BI_SringBR(BLACSCONTEXT *ctxt, BLACBUFF *bp, SDRVPTR send, Int src)
Definition
BI_SringBR.c:3
Int
#define Int
Definition
Bconfig.h:22
Mscopeid
#define Mscopeid(ctxt)
Definition
Bdef.h:179
SDRVPTR
void(* SDRVPTR)(BLACSCONTEXT *, Int, Int, BLACBUFF *)
Definition
Bdef.h:69
BANYNODE
#define BANYNODE
Definition
Bdef.h:76
Bdef.h
bLaCbUfF
Definition
Bdef.h:55
bLaCsCoNtExT::scp
BLACSSCOPE * scp
Definition
Bdef.h:26
bLaCsCoNtExT
Definition
Bdef.h:24
bLaCsScOpE::Np
Int Np
Definition
Bdef.h:17
bLaCsScOpE::Iam
Int Iam
Definition
Bdef.h:17
BLACS
SRC
BI_SringBR.c
Generated on Sun Jan 12 2025 15:58:37 for SCALAPACK by
1.9.8