/usr/include/adios_schema.h is in libadios-dev 1.7.0-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | #ifndef ADIOS_SCHEMA_H
#define ADIOS_SCHEMA_H
#ifdef __cplusplus
extern "C" {
#endif
enum ADIOS_MESH_TYPE
{
ADIOS_MESH_UNIFORM = 1
,ADIOS_MESH_STRUCTURED = 2
,ADIOS_MESH_RECTILINEAR = 3
,ADIOS_MESH_UNSTRUCTURED = 4
};
typedef struct
{
int num_dimensions;
uint64_t * dimensions;
double * origins;
double * spacings;
double * maximums;
} MESH_UNIFORM;
typedef struct
{
int use_single_var; // 1 means coordinates-single-var,0 means coordinates-multi-var
int num_dimensions;
uint64_t * dimensions;
char ** coordinates; // name of the variable(s) containing the rectilinear spacing values
} MESH_RECTILINEAR;
typedef struct
{
int use_single_var; // 1 means points-single-var, 0 mean points-multi-var
int num_dimensions;
uint64_t * dimensions;
int nspaces;
char ** points; // name of the variable(s) containing the point coordinates
} MESH_STRUCTURED;
// ADIOS Schema: supported cell types
enum ADIOS_CELL_TYPE
{
ADIOS_CELL_PT = 1
,ADIOS_CELL_LINE = 2
,ADIOS_CELL_TRI = 3
,ADIOS_CELL_QUAD = 4
,ADIOS_CELL_HEX = 5
,ADIOS_CELL_PRI = 6
,ADIOS_CELL_TET = 7
,ADIOS_CELL_PYR = 8
};
typedef struct
{
int nspaces;
uint64_t npoints;
int nvar_points; // how much vars for points-multi-var, 1 for points-single-var
char ** points;
int ncsets;
uint64_t * ccounts;
char ** cdata;
enum ADIOS_CELL_TYPE * ctypes;
} MESH_UNSTRUCTURED;
typedef struct { //type returned by adios_inq_mesh for read method
int id;
char * name;
char * file_name; // 0 means mesh struct from the same file, otherwise mesh struct from externel file
int time_varying; //0 means not time-varying, 1 means time-varying
enum ADIOS_MESH_TYPE type;
union
{
MESH_UNIFORM * uniform;
MESH_RECTILINEAR * rectilinear;
MESH_STRUCTURED * structured;
MESH_UNSTRUCTURED * unstructured;
};
} ADIOS_MESH;
#ifdef __cplusplus
}
#endif
#endif
|