pio.h 672 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
#include <stdlib.h>
10
#include <mpi.h>
Deike Kleberg's avatar
Deike Kleberg committed
11
12
13
14

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

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

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

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