pio.h 686 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
#include "cdi_int.h"

14
void   backendCleanup  ( void );
15
void backendInit(void (*postCommSetupActions)(void));
16
void   backendFinalize ( void );
17
int pioFileOpen(const char *filename, const char *mode);
18
int    pioFileClose    ( int );
Thomas Jahns's avatar
Thomas Jahns committed
19
20
size_t cdiPioFileWrite(int fileID, const void *restrict buffer, size_t len,
                       int tsID);
21
22
#else
typedef int MPI_Comm;
Deike Kleberg's avatar
Deike Kleberg committed
23
#endif
24

25
#endif
26
27
28
29
30
31
32
33
34
/*
 * Local Variables:
 * c-file-style: "Java"
 * c-basic-offset: 2
 * indent-tabs-mode: nil
 * show-trailing-whitespace: t
 * require-trailing-newline: t
 * End:
 */