rebl-AMR
typedefs.h
Go to the documentation of this file.
1 #ifndef _TYPEDEFS_H_
2 #define _TYPEDEFS_H_
3 #include "definitions.h"
4 #include "zoltan.h"
5 
6 
13 typedef struct{
16  real z;
17 } CenterCoords;
18 
19 
20 typedef std::vector<CenterCoords>Center_coords;
21 
22 
29 typedef struct {
30  int changes;
33  int numImport;
34  int numExport;
35  unsigned int* importGlobalGids;
36  unsigned int* importLocalGids;
37  unsigned int* exportGlobalGids;
38  unsigned int* exportLocalGids;
43  int *parts;
44 } Zoltan_Out;
45 
46 bool zoltanGeometricPartitioner(const uint size,const uint ncube_total,const uint offset,const int method,struct Zoltan_Struct *zz,const Center_coords &XYZ,real *weight,Zoltan_Out *zoltan_out);
47 
48 bool zoltanGeometricPartitionerSerial(const uint size,const uint ncube_total,const uint offset,const int method,struct Zoltan_Struct *zz,const Center_coords &XYZ,real *weight,Zoltan_Out *zoltan_out,int comsize);
49 
50 void treeProcessorTopology( int argcs, char *pArgs[] );
51 //void fTreeProcessorTopology( int argcs, char *pArgs[] );
52 
53 
54 
55 void readSTLGeom( int argc, char *argv[], real **triangle_center, int *nn, const real *xyz );
56 void delete_ship(real *geom_xyz, int *geom_nn);
57 
58 inline void TwoPowN( uint b, real *result )
59 {
60  uint two = 1;
61  two = two << b;
62  *result = (real)two;
63 };
64 
65 
66 
67 
68 
69 
70 
71 
72 #endif
bool zoltanGeometricPartitioner(const uint size, const uint ncube_total, const uint offset, const int method, struct Zoltan_Struct *zz, const Center_coords &XYZ, real *weight, Zoltan_Out *zoltan_out)
int * exportToPart
Definition: typedefs.h:42
int changes
Definition: typedefs.h:30
int numImport
Definition: typedefs.h:33
int * importProcs
Definition: typedefs.h:39
real z
Definition: typedefs.h:16
bool zoltanGeometricPartitionerSerial(const uint size, const uint ncube_total, const uint offset, const int method, struct Zoltan_Struct *zz, const Center_coords &XYZ, real *weight, Zoltan_Out *zoltan_out, int comsize)
int numExport
Definition: typedefs.h:34
void treeProcessorTopology(int argcs, char *pArgs[])
unsigned int * exportGlobalGids
Definition: typedefs.h:37
void readSTLGeom(int argc, char *argv[], real **triangle_center, int *nn, const real *xyz)
int numGidEntries
Definition: typedefs.h:31
Stores the coordinate of the centroid of the elments.
Definition: typedefs.h:13
int numLidEntries
Definition: typedefs.h:32
unsigned int * exportLocalGids
Definition: typedefs.h:38
void delete_ship(real *geom_xyz, int *geom_nn)
unsigned int * importGlobalGids
Definition: typedefs.h:35
int * parts
Definition: typedefs.h:43
double real
Definition: definitions.h:37
unsigned int uint
Definition: definitions.h:38
std::vector< CenterCoords > Center_coords
Definition: typedefs.h:20
This structure is an interface to store the output from Zoltan.
Definition: typedefs.h:29
int * importToPart
Definition: typedefs.h:40
void TwoPowN(uint b, real *result)
Definition: typedefs.h:58
int * exportProcs
Definition: typedefs.h:41
real x
Definition: typedefs.h:14
real y
Definition: typedefs.h:15
unsigned int * importLocalGids
Definition: typedefs.h:36