forked from PETTT/miniIO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadiosfull.h
39 lines (29 loc) · 926 Bytes
/
adiosfull.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Copyright (c) DoD HPCMP PETTT. All rights reserved.
* See LICENSE file for details.
*/
#include <mpi.h>
#include <adios.h>
struct adiosfullinfo {
char *name;
MPI_Comm comm;
int rank;
int nprocs;
int tsteps;
int ni, nj, nk;
int is, cni, js, cnj, ks, cnk;
float deltax, deltay, deltaz;
int nvars;
int maxvars;
char **varnames;
float **datas;
int bufallocsize;
int64_t gid;
};
void adiosfull_init(struct adiosfullinfo *nfo, char *method,
char *name, MPI_Comm comm, int rank, int nprocs,
int tsteps, int ni, int nj, int nk, int is, int cni, int js, int cnj,
int ks, int cnk, float deltax, float deltay, float deltaz);
void adiosfull_addvar(struct adiosfullinfo *nfo, char *varname, float *data);
void adiosfull_write(struct adiosfullinfo *nfo, int tstep);
void adiosfull_finalize(struct adiosfullinfo *nfo);