ScaLAPACK 2.1
2.1
ScaLAPACK: Scalable Linear Algebra PACKage
BI_TransUserComm.c
Go to the documentation of this file.
1
#include "
Bdef.h
"
2
3
MPI_Comm
BI_TransUserComm
(
int
Ucomm,
int
Np,
int
*pmap)
4
{
5
MPI_Comm bcomm, ucomm;
6
MPI_Group bgrp, ugrp;
7
int
i;
8
ucomm = MPI_Comm_f2c(Ucomm);
9
i=MPI_Comm_group(ucomm, &ugrp);
10
i=MPI_Group_incl(ugrp, Np, pmap, &bgrp);
11
i=MPI_Comm_create(ucomm, bgrp, &bcomm);
12
i=MPI_Group_free(&ugrp);
13
i=MPI_Group_free(&bgrp);
14
15
return
(bcomm);
16
}
BI_TransUserComm
MPI_Comm BI_TransUserComm(int Ucomm, int Np, int *pmap)
Definition:
BI_TransUserComm.c:3
Bdef.h
BLACS
SRC
BI_TransUserComm.c
Generated by
1.8.16