OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
mpi.h
Go to the documentation of this file.
1/*
2 *
3 * This file is part of MUMPS 5.5.1, released
4 * on Tue Jul 12 13:17:24 UTC 2022
5 *
6 *
7 * Copyright 1991-2022 CERFACS, CNRS, ENS Lyon, INP Toulouse, Inria,
8 * Mumps Technologies, University of Bordeaux.
9 *
10 * This version of MUMPS is provided to you free of charge. It is
11 * released under the CeCILL-C license
12 * (see doc/CeCILL-C_V1-en.txt, doc/CeCILL-C_V1-fr.txt, and
13 * https://cecill.info/licences/Licence_CeCILL-C_V1-en.html)
14 *
15 */
16#ifdef INTSIZE64
17#include <inttypes.h>
18#define LIBSEQ_INT int64_t
19#else
20#define LIBSEQ_INT int
21#endif
22
23#if ! defined(LIBSEQ_CALL)
24#if defined(_WIN32) && ! defined(__MINGW32__)
25/* Choose between next lines or modify according
26 * to your Windows calling conventions:
27 #define LIBSEQ_CALL
28 #define LIBSEQ_CALL __declspec(dllexport)
29 #define LIBSEQ_CALL __declspec(dllexport) */
30#define LIBSEQ_CALL
31#else
32#define LIBSEQ_CALL
33#endif
34#endif
35
36
37#ifndef MUMPS_MPI_H
38#define MUMPS_MPI_H
39
40/* We define all symbols as extern "C" for users who call MUMPS with its
41 libseq from a C++ driver. */
42#ifdef __cplusplus
43extern "C" {
44#endif
45
46/* This is the minimum to have the C interface to MUMPS work with the
47 * C example provided. Other stub functions of the MPI standard may be
48 * added if needed. */
49
50typedef LIBSEQ_INT MPI_Comm; /* Simple type for MPI communicator */
52
53LIBSEQ_INT LIBSEQ_CALL MPI_Init(LIBSEQ_INT *pargc, char ***pargv);
56
57/* For MPI_IS_IN_PLACE tests */
58void LIBSEQ_CALL MUMPS_CHECKADDREQUAL(char *a, char*b, LIBSEQ_INT *i);
59void LIBSEQ_CALL MUMPS_CHECKADDREQUAL_(char *a, char*b, LIBSEQ_INT *i);
60void LIBSEQ_CALL mumps_checkaddrequal_(char *a, char*b, LIBSEQ_INT *i);
61void LIBSEQ_CALL mumps_checkaddrequal__(char *a, char*b, LIBSEQ_INT *i);
62double LIBSEQ_CALL MPI_Wtime();
63
64#ifdef __cplusplus
65}
66#endif
67
68#endif /* MUMPS_MPI_H */
#define LIBSEQ_CALL
Definition mpi.h:32
double LIBSEQ_CALL MPI_Wtime()
Definition mpic.c:60
LIBSEQ_INT LIBSEQ_CALL MPI_Comm_rank(LIBSEQ_INT comm, LIBSEQ_INT *rank)
Definition mpic.c:23
void LIBSEQ_CALL MUMPS_CHECKADDREQUAL_(char *a, char *b, LIBSEQ_INT *i)
Definition mpic.c:47
#define LIBSEQ_INT
Definition mpi.h:20
void LIBSEQ_CALL MUMPS_CHECKADDREQUAL(char *a, char *b, LIBSEQ_INT *i)
Definition mpic.c:35
LIBSEQ_INT MPI_Comm
Definition mpi.h:50
LIBSEQ_INT LIBSEQ_CALL MPI_Finalize(void)
Definition mpic.c:28
static MPI_Comm MPI_COMM_WORLD
Definition mpi.h:51
void LIBSEQ_CALL mumps_checkaddrequal__(char *a, char *b, LIBSEQ_INT *i)
Definition mpic.c:55
void LIBSEQ_CALL mumps_checkaddrequal_(char *a, char *b, LIBSEQ_INT *i)
Definition mpic.c:51
LIBSEQ_INT LIBSEQ_CALL MPI_Init(LIBSEQ_INT *pargc, char ***pargv)
Definition mpic.c:18