pio.h 648 Bytes
Newer Older
1
2
#ifndef _PIO_H
#define _PIO_H
Deike Kleberg's avatar
Deike Kleberg committed
3

4
5
6
7
#ifdef HAVE_CONFIG_H
#  include "config.h"
#endif

8
#ifdef USE_MPI
Deike Kleberg's avatar
Deike Kleberg committed
9
10
11
12
13
14
#include <stdlib.h>
#include "mpi.h"

typedef struct{
  int type;
  MPI_Comm comm;
15
  int color;
Deike Kleberg's avatar
Deike Kleberg committed
16
17
18
19
  int size;
  int rank;
  int specialRank;
  MPI_Comm collectorComm;
20
}pioInfo; 
Deike Kleberg's avatar
Deike Kleberg committed
21

Deike Kleberg's avatar
Deike Kleberg committed
22
MPI_Comm bInit ( int, MPI_Comm, int *, int * );
Deike Kleberg's avatar
Deike Kleberg committed
23
24
25
26
int pioFileOpenW ( const char* );
int pioFileClose ( int );
size_t pioFileWrite ( int, int, const void*, size_t );

27
28
#else
typedef int MPI_Comm;
Deike Kleberg's avatar
Deike Kleberg committed
29
#endif
30

31
#endif
32
33
34
35
36
37
38
39
40
/*
 * Local Variables:
 * c-file-style: "Java"
 * c-basic-offset: 2
 * indent-tabs-mode: nil
 * show-trailing-whitespace: t
 * require-trailing-newline: t
 * End:
 */