OpenRadioss
2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
BI_GetMpiGeType.c
Go to the documentation of this file.
1
#include "
Bdef.h
"
2
MPI_Datatype
BI_GetMpiGeType
(
BLACSCONTEXT
*ctxt,
Int
m,
Int
n
,
Int
lda,
3
MPI_Datatype Dtype,
Int
*
N
)
4
{
5
Int
info;
6
MPI_Datatype GeType;
7
8
/*
9
* Some versions of mpich and its derivitives cannot handle 0 byte typedefs,
10
* so we set type MPI_BYTE as a flag for a 0 byte message
11
*/
12
#ifdef ZeroByteTypeBug
13
if
( (m < 1) || (
n
< 1) )
14
{
15
*
N
= 0;
16
return
(MPI_BYTE);
17
}
18
#endif
19
*
N
= 1;
20
info=MPI_Type_vector(
n
, m, lda, Dtype, &GeType);
21
info=MPI_Type_commit(&GeType);
22
23
return
(GeType);
24
}
BI_GetMpiGeType
MPI_Datatype BI_GetMpiGeType(BLACSCONTEXT *ctxt, Int m, Int n, Int lda, MPI_Datatype Dtype, Int *N)
Definition
BI_GetMpiGeType.c:2
Int
#define Int
Definition
Bconfig.h:22
Bdef.h
BLACSCONTEXT
struct bLaCsCoNtExT BLACSCONTEXT
Definition
Bdef.h:22
N
#define N
Definition
example_user.c:10
n
n
Definition
schur_example.m:9
engine
extlib
scalapack-2.2.0
BLACS
SRC
BI_GetMpiGeType.c
Generated by
1.15.0