/usr/include/ug/ugm.h is in libdune-uggrid-dev 2.5.0-1.
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 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
/*! \file ugm.h
* \ingroup gm
*/
/****************************************************************************/
/* */
/* File: ugm.h */
/* */
/* Purpose: unstructured grid manager header file */
/* internal interface in grid manager module */
/* */
/* Author: Peter Bastian */
/* Interdisziplinaeres Zentrum fuer Wissenschaftliches Rechnen */
/* Universitaet Heidelberg */
/* Im Neuenheimer Feld 368 */
/* 6900 Heidelberg */
/* internet: ug@ica3.uni-stuttgart.de */
/* */
/* History: 09.03.92 begin, ug version 2.0 */
/* 13.12.94 begin, ug version 3.0 */
/* */
/* Remarks: */
/* */
/****************************************************************************/
/****************************************************************************/
/* */
/* auto include mechanism and other include files */
/* */
/****************************************************************************/
#ifndef __UGM__
#define __UGM__
#include "ugtypes.h"
#include "gm.h"
#include "dlmgr.h"
#include "namespace.h"
START_UGDIM_NAMESPACE
/****************************************************************************/
/* */
/* defines in the following order */
/* */
/* compile time constants defining static data size (i.e. arrays) */
/* other constants */
/* macros */
/* */
/****************************************************************************/
#define MAX_PAR_DIST 1.0E-6 /* max.dist between different parameter */
#ifndef DYNAMIC_MEMORY_ALLOCMODEL
#ifdef ModelP
#define PutFreeObject(theMG,object,size,type) PutFreeObject_par(MGHEAP(theMG),(object),(size),(type))
#define GetMemoryForObject(theMG,size,type) GetMemoryForObject_par(MGHEAP(theMG),(size),(type))
#else
#define GetMemoryForObject(theMG,size,type) GetFreelistMemory(MGHEAP(theMG),(size))
#define PutFreeObject(theMG,object,size,type) PutFreelistMemory(MGHEAP(theMG),(object),(size))
#endif
#else
#define GetMemoryForObject(theMG,size,type) GetMemoryForObjectNew(MGHEAP(theMG),(size),(type))
#define PutFreeObject(theMG,object,size,type) PutFreeObjectNew(MGHEAP(theMG),(object),(size),(type))
#endif
/****************************************************************************/
/* */
/* data structures exported by the corresponding source file */
/* */
/****************************************************************************/
/****************************************************************************/
/* */
/* definition of exported global variables */
/* */
/****************************************************************************/
/****************************************************************************/
/* */
/* function declarations */
/* */
/****************************************************************************/
/* init */
INT InitUGManager (void);
INT ExitUGManager ();
/* object handling */
INT GetFreeOBJT (void);
INT ReleaseOBJT (INT type);
/* create basic objects */
/** \todo Commented out because no definitions exist for these declarations
#if defined(__TWODIM__)
int GetElemLink (NODE *from, NODE *to, ELEMENT *theElement);
ELEMENT *NbElem (const ELEMENT *theElement, int i);
void Set_NbElem (ELEMENT *theElement, int i, ELEMENT *Neighbor);
#endif
*/
#ifdef ModelP
EDGE * CreateEdge (GRID *theGrid, ELEMENT *theElement, INT i, bool with_vector);
#endif
ELEMENT * CreateElement (GRID *theGrid, INT tag, INT objtype,
NODE **nodes, ELEMENT *Father, bool with_vector);
INT CreateSonElementSide (GRID *theGrid, ELEMENT *theElement,
INT side, ELEMENT *theSon, INT son_side);
GRID *CreateNewLevel (MULTIGRID *theMG, INT algebraic);
GRID *CreateNewLevelAMG (MULTIGRID *theMG);
/* dispose basic objects */
INT DisposeElement (GRID *theGrid, ELEMENT *theElement, INT dispose_connections);
INT DisposeTopLevel (MULTIGRID *theMG);
INT DisposeNode (GRID *theGrid, NODE *theNode);
/* miscellaneous */
ELEMENT *FindFather (VERTEX *vptr);
INT FindNeighborElement (const ELEMENT *theElement, INT Side, ELEMENT **theNeighbor, INT *NeighborSide);
INT PointInElement (const DOUBLE*, const ELEMENT *theElement);
INT PointOnSide (const DOUBLE *global, const ELEMENT *theElement, INT side);
DOUBLE DistanceFromSide (const DOUBLE *global, const ELEMENT *theElement, INT side);
INT FindFlippedElements (const MULTIGRID *theMG, INT verbose);
NS_PREFIX VIRT_HEAP_MGMT *GetGenMGUDM (void);
INT CheckOrientation (INT n, VERTEX **vertices);
INT CheckOrientationInGrid (GRID *theGrid);
NODE *CreateSonNode (GRID *theGrid, NODE *FatherNode);
NODE *CreateMidNode (GRID *theGrid, ELEMENT *theElement, VERTEX *theVertex, INT edge);
NODE *GetCenterNode (const ELEMENT *theElement);
NODE *CreateCenterNode (GRID *theGrid, ELEMENT *theElement, VERTEX *theVertex);
#ifdef __THREEDIM__
NODE *CreateSideNode (GRID *theGrid, ELEMENT *theElement, VERTEX *theVertex, INT side);
NODE *GetSideNode (const ELEMENT *theElement, INT side);
#endif
INT GetSideIDFromScratch (ELEMENT *theElement, NODE *theNode);
NODE *GetMidNode (const ELEMENT *theElement, INT edge);
INT GetNodeContext (const ELEMENT *theElement, NODE **theElementContext);
void GetNbSideByNodes (ELEMENT *theNeighbor, INT *nbside, ELEMENT *theElement, INT side);
#if defined(ModelP) && !defined(DYNAMIC_MEMORY_ALLOCMODEL)
void *GetMemoryForObject_par (NS_PREFIX HEAP *theHeap, INT size, INT type);
INT PutFreeObject_par (NS_PREFIX HEAP *theHeap, void *object, INT size, INT type);
#endif
#ifdef DYNAMIC_MEMORY_ALLOCMODEL
void *GetMemoryForObjectNew (NS_PREFIX HEAP *theHeap, INT size, INT type);
INT PutFreeObjectNew (NS_PREFIX HEAP *theHeap, void *object, INT size, INT type);
/* determination of node classes */
INT ClearNodeClasses (GRID *theGrid);
INT SeedNodeClasses (ELEMENT *theElement);
INT PropagateNodeClasses (GRID *theGrid);
INT ClearNextNodeClasses (GRID *theGrid);
INT SeedNextNodeClasses (ELEMENT *theElement);
INT PropagateNextNodeClasses (GRID *theGrid);
INT MaxNextNodeClass (const ELEMENT *theElement);
INT MinNodeClass (const ELEMENT *theElement);
INT MinNextNodeClass (const ELEMENT *theElement);
#endif
#ifdef __PERIODIC_BOUNDARY__
INT MG_GeometricToPeriodic (MULTIGRID *mg, INT fl, INT tl);
INT Grid_GeometricToPeriodic (GRID *g);
INT MGSetPerVecCount (MULTIGRID *mg);
INT GridSetPerVecCount (GRID *g);
INT SetPerVecVOBJECT (GRID *g);
INT Grid_CheckPeriodicity (GRID *g);
#endif
END_UGDIM_NAMESPACE
#endif
|