Debian Codegraph @

dune/uggrid/gm/algebra.h

raw
1 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=4 sw=2 sts=2:
3 // SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root
4 // SPDX-License-Identifier: LGPL-2.1-or-later
5 /*! \file algebra.h
6 * \ingroup gm
7 */
8
9 /** \addtogroup gm
10 *
11 * @{
12 */
13
14 /****************************************************************************/
15 /* */
16 /* File: algebra.h */
17 /* */
18 /* Purpose: header for algebraic structures */
19 /* internal interface for grid manager module */
20 /* */
21 /* Author: Klaus Johannsen */
22 /* Interdisziplinaeres Zentrum fuer Wissenschaftliches Rechnen */
23 /* Universitaet Heidelberg */
24 /* Im Neuenheimer Feld 294 */
25 /* 6900 Heidelberg */
26 /* internet: [email protected] */
27 /* */
28 /* blockvector data structure: */
29 /* Christian Wrobel */
30 /* Institut fuer Computeranwendungen III */
31 /* Universitaet Stuttgart */
32 /* Pfaffenwaldring 27 */
33 /* 70569 Stuttgart */
34 /* email: [email protected] */
35 /* */
36 /* History: 1.12.93 begin, ug 3d */
37 /* 27.09.95 blockvector implemented (Christian Wrobel) */
38 /* */
39 /* Remarks: */
40 /* */
41 /****************************************************************************/
42
43
44 /****************************************************************************/
45 /* */
46 /* auto include mechanism and other include files */
47 /* */
48 /****************************************************************************/
49
50 #ifndef __ALGEBRA__
51 #define __ALGEBRA__
52
53 #include <dune/uggrid/low/namespace.h>
54 #include <dune/uggrid/low/ugtypes.h>
55
56 #include "gm.h"
57
58 START_UGDIM_NAMESPACE
59
60
61 /****************************************************************************/
62 /* */
63 /* function declarations */
64 /* */
65 /****************************************************************************/
66
67 /** @name basic create and dispose functions */
68 /*@{*/
69 INT CreateSideVector (GRID *theGrid, INT side, GEOM_OBJECT *object, VECTOR **vHandle);
70 INT DisposeVector (GRID *theGrid, VECTOR *theVector);
71 /*@}*/
72
73 /** @name More create and dispose */
74 /*@{*/
75 #ifdef UG_DIM_3
76 INT DisposeDoubledSideVector (GRID *theGrid, ELEMENT *Elem0, INT Side0, ELEMENT *Elem1, INT Side1);
77 #endif
78 /*@}*/
79
80 /** @name Query functions */
81 /*@{*/
82 INT GetVectorsOfSides (const ELEMENT *theElement, INT *cnt, VECTOR **vList);
83 INT GetElementInfoFromSideVector (const VECTOR *theVector, ELEMENT **Elements, INT *Sides);
84 /*@}*/
85
86 /** @name Gridwise functions */
87 /*@{*/
88 INT SetSurfaceClasses (MULTIGRID *theMG);
89 INT CreateAlgebra (MULTIGRID *theMG);
90 /*@}*/
91
92 /** @name Check algebra */
93 /*@{*/
94 INT CheckAlgebra (GRID *theGrid);
95 /*@}*/
96
97 /** @name Determination of vector classes */
98 /*@{*/
99 INT ClearVectorClasses (GRID *theGrid);
100 INT SeedVectorClasses (GRID *theGrid, ELEMENT *theElement);
101 INT PropagateVectorClasses (GRID *theGrid);
102 INT ClearNextVectorClasses (GRID *theGrid);
103 INT SeedNextVectorClasses (GRID *theGrid, ELEMENT *theElement);
104 INT PropagateNextVectorClasses (GRID *theGrid);
105 /*@}*/
106
107 /** @name Miscellaneous routines */
108 /*@{*/
109 INT PrepareAlgebraModification (MULTIGRID *theMG);
110 /*@}*/
111
112 END_UGDIM_NAMESPACE
113
114 #endif
115
116 /** @} */