source: CPL/oasis3-mct/branches/OASIS3-MCT_2.0_branch/lib/mct/mpi-serial/mpiP.h @ 4775

Last change on this file since 4775 was 4775, checked in by aclsce, 5 years ago
  • Imported oasis3-mct from Cerfacs svn server (not suppotred anymore).

The version has been extracted from https://oasis3mct.cerfacs.fr/svn/branches/OASIS3-MCT_2.0_branch/oasis3-mct@1818

File size: 971 bytes
Line 
1
2/*
3 * Private .h file for MPI
4 */
5
6
7#include <unistd.h>
8#include <stdlib.h>
9#include <stdio.h>
10#include <string.h>
11
12#include "listops.h"
13#include "mpi.h"
14#include "config.h"
15
16/*
17 * MPI_GROUP_ONE must not conflict with MPI_GROUP_NULL or
18 * MPI_GROUP_EMPTY
19 */
20
21#define MPI_GROUP_ONE  (1)
22
23
24/****************************************************************************/
25
26
27typedef struct
28{
29  pList sendlist;
30  pList recvlist;
31
32  int num;
33
34} Comm;
35
36
37
38typedef struct
39{
40  pListitem listitem;        /* to allow Req to be removed from list */
41
42  int *buf;
43  int source;
44  int tag;
45  int complete;
46
47} Req;
48
49
50
51
52/****************************************************************************/
53
54
55extern void *mpi_malloc(int size);
56extern void mpi_free(void *ptr);
57
58extern MPI_Comm mpi_comm_new(void);
59
60extern void mpi_destroy_handles(void);
61extern void mpi_alloc_handle(int *handle, void **data);
62extern void *mpi_handle_to_ptr(int handle);
63extern void mpi_free_handle(int handle);
64
Note: See TracBrowser for help on using the repository browser.