aboutsummaryrefslogtreecommitdiff
path: root/src/Panda/c_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Panda/c_interface.h')
-rw-r--r--src/Panda/c_interface.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/Panda/c_interface.h b/src/Panda/c_interface.h
new file mode 100644
index 0000000..b167f6f
--- /dev/null
+++ b/src/Panda/c_interface.h
@@ -0,0 +1,28 @@
+#ifndef _included_C_Interface_h
+#define _included_C_Interface_h
+
+#include "external/IEEEIO/src/IEEEIO.h"
+
+
+typedef enum { NONE,
+ BLOCK,
+ GENERAL,
+ CYCLIC
+ } Distribution;
+typedef struct ArrayInfo {
+ char* name_; /* array name */
+ int rank_; /* rank */
+ int* size_; /* glbal size of the array */
+ int esize_; /* size of each element */
+ int mem_rank_; /* compute processor topology - rank */
+ int* mem_layout_; /* compute processor topology - mesh */
+ Distribution* mem_dist_; /* compute processor topology - dist */
+ int disk_rank_; /* io processor topology - rank */
+ int* disk_layout_; /* io processor topology - mesh */
+ Distribution* disk_dist_; /* io processor topology - dist */
+ char* data_; /* data pointer belonging to me */
+ int stencil_width_; /* stencil width */
+ struct ArrayInfo *next_; /* next element */
+} ArrayInfo;
+
+#endif