3 #ifndef __GRAPE_HMESH_H__
4 #define __GRAPE_HMESH_H__
20 enum { MAX_NAME_LENGTH = 32 };
22 typedef struct dune_elem DUNE_ELEM;
23 typedef struct dune_fdata DUNE_FDATA;
24 typedef struct dune_dat DUNE_DAT;
26 typedef void evalDof_t (DUNE_ELEM *, DUNE_FDATA *,
int ,
double *);
27 typedef void evalCoord_t (DUNE_ELEM *, DUNE_FDATA *,
const double *,
double * );
38 , level_of_interest(-1)
49 for(
int i=0; i<MAX_EL_DOF; ++i)
52 vpointer[i] = (
double *) coordinates[i];
53 for(
int j=0; j<3; ++j)
58 for(
int i=0; i<MAX_EL_FACE; ++i)
69 double * vpointer [MAX_EL_DOF];
70 double coordinates [MAX_EL_DOF][3];
71 int vindex [MAX_EL_DOF] ;
72 int bnd [MAX_EL_FACE] ;
75 int level_of_interest;
101 static std::set<DUNE_FDATA*>& dataList ()
103 static std::set<DUNE_FDATA*> dList;
123 , setGridPartIterators(0)
132 dataList().insert(
this);
138 dataList().erase(
this);
148 evalCoord_t * evalCoord;
152 const void *discFunc;
155 const void *indexSet;
184 void (*setGridPartIterators)(DUNE_DAT * ,
void * gridPart);
201 void (*getMinMaxValues)(DUNE_FDATA *,
double *
min,
double *
max );
218 , setIterationModus(0)
221 , partitionIteratorType(-1)
225 , free_stackentry(0) {}
232 void (* delete_iter)(DUNE_ELEM *) ;
238 void * (* copy)(
const void *) ;
240 int (* check_inside)(DUNE_ELEM *,
const double * ) ;
241 int (* wtoc)(DUNE_ELEM *,
const double *,
double * ) ;
242 void (* ctow)(DUNE_ELEM *,
const double *,
double * ) ;
246 void (* setIterationModus)(DUNE_DAT *, DUNE_FDATA *);
255 int partitionIteratorType;
263 void * (*get_stackentry)(DUNE_DAT * );
265 void (*free_stackentry)(DUNE_DAT * ,
void *);
269 extern void *
setupHmesh(
const int noe,
const int nov,
270 const int maxlev, DUNE_DAT * dune);
277 extern void handleMesh (
void *hmesh,
bool gridMode );
279 extern DUNE_FDATA *
extractData (
void *hmesh ,
int num );
288 extern void tsc_timebar(
void *timescene,
double t_start,
double t_end);
291 #endif // #if HAVE_GRAPE
293 #endif // #ifndef __GRAPE_HMESH_H__
void handleMesh(void *hmesh, bool gridMode)
Definition: ghmesh.cc:1065
void colorBarMinMax(const double min, const double max)
Definition: ghmesh.cc:1057
DUNE_FDATA * extractData(void *hmesh, int num)
Definition: ghmesh.cc:1166
int max(const DofVectorPointer< int > &dofVector)
Definition: dofvector.hh:335
void addDataToHmesh(void *hmesh, DUNE_FDATA *data)
Definition: ghmesh.cc:668
void timeSceneInit(INFO *info, const int n_info, const int procs)
Definition: grapecommon.cc:174
static HELEMENT * next_child(HELEMENT *el, MESH_ELEMENT_FLAGS flag)
Definition: ghmesh.cc:344
void deleteFunctions(void *hmesh)
Definition: ghmesh.cc:851
void addHmeshToGlobalTimeScene(double time, void *hmesh, int proc)
Definition: ghmesh.cc:1149
static HELEMENT * next_macro(HELEMENT *el, MESH_ELEMENT_FLAGS flag)
Definition: ghmesh.cc:262
static HELEMENT * first_child(HELEMENT *ael, MESH_ELEMENT_FLAGS flag)
Definition: ghmesh.cc:286
int min(const DofVectorPointer< int > &dofVector)
Definition: dofvector.hh:346
Definition: grapecommon.hh:49
void deleteHmesh(void *hmesh)
Definition: ghmesh.cc:845
All all
PartitionSet for all partitions.
Definition: partitionset.hh:237
static HELEMENT * first_macro(GENMESHnD *mesh, MESH_ELEMENT_FLAGS flag)
Definition: ghmesh.cc:190
void addHmeshToTimeScene(void *timescene, double time, void *hmesh, int proc)
Definition: ghmesh.cc:1124
void * setupHmesh(const int noe, const int nov, const int maxlev, DUNE_DAT *dune, const char *meshName)
Definition: ghmesh.cc:794