ElInfo.h 15.8 KB
Newer Older
1
2
3
4
5
6
// ============================================================================
// ==                                                                        ==
// == AMDiS - Adaptive multidimensional simulations                          ==
// ==                                                                        ==
// ============================================================================
// ==                                                                        ==
7
// ==  TU Dresden                                                            ==
8
// ==                                                                        ==
9
10
11
// ==  Institut fr Wissenschaftliches Rechnen                               ==
// ==  Zellescher Weg 12-14                                                  ==
// ==  01069 Dresden                                                         ==
12
13
14
15
// ==  germany                                                               ==
// ==                                                                        ==
// ============================================================================
// ==                                                                        ==
16
// ==  https://gforge.zih.tu-dresden.de/projects/amdis/                      ==
17
18
19
20
21
22
23
24
// ==                                                                        ==
// ============================================================================

/** \file ElInfo.h */

#ifndef AMDIS_ELINFO_H
#define AMDIS_ELINFO_H

25
26
#include <boost/numeric/mtl/mtl.hpp>

27
28
29
30
31
#include "Flag.h"
#include "Boundary.h"
#include "Global.h"
#include "FixVec.h"
#include "Element.h"
32
#include "AMDiS_fwd.h" 
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49

namespace AMDiS {

  /** \ingroup Traverse
   * \brief 
   * An ElInfo object holds informations wich are not stored in the corresponding
   * element. It is filled during mesh traversal by the traversal routines.
   * A fill flag determines which informations should be filled and which elements
   * should be visited. Since it is a
   * pure virtual base class for the dimension speciefic ElInfo classes, it must
   * not be instantiated directly.
   * \see ElInfo1d \see ElInfo2d \see ElInfo3d
   */

  class ElInfo
  {
  protected: 
50
    /// Protected constructor. Avoids instatiation of the basis class
51
52
53
54
55
56
57
58
59
    ElInfo();

    /** \brief
     * Protected constructor. Avoids instatiation of the basis class.
     * \param mesh pointer to the corresponding mesh.
     */
    ElInfo(Mesh *mesh);

  public:
60
    /// Virtual destructor because ElInfo is pure virtual.
61
62
63
64
65
66
    virtual ~ElInfo();

    /** \brief
     * Assignement operator.
     * \param rhs right hand side.
     */
Thomas Witkowski's avatar
Thomas Witkowski committed
67
68
    ElInfo& operator=(const ElInfo& rhs) 
    {
Thomas Witkowski's avatar
Thomas Witkowski committed
69
70
71
72
73
      mesh = rhs.mesh;
      element = rhs.element;
      parent = rhs.parent;
      macroElement = rhs.macroElement;
      fillFlag = rhs.fillFlag;
74
      level = rhs.level;
75
      iChild = rhs.iChild;
Thomas Witkowski's avatar
Thomas Witkowski committed
76
77
78
79
      coord = rhs.coord;
      boundary = rhs.boundary;
      oppCoord = rhs.oppCoord;
      neighbour = rhs.neighbour;
80
      neighbourCoord = rhs.neighbourCoord;
81
      oppVertex = rhs.oppVertex;
82
      return *this;
83
    }
84
85
86
87
88
89

  public:
    /** \name getting methods
     * \{ 
     */

Thomas Witkowski's avatar
Thomas Witkowski committed
90
    /// Get ElInfo's \ref mesh
Thomas Witkowski's avatar
Thomas Witkowski committed
91
92
    inline Mesh* getMesh() const 
    { 
Thomas Witkowski's avatar
Thomas Witkowski committed
93
      return mesh; 
94
    }
95

Thomas Witkowski's avatar
Thomas Witkowski committed
96
    /// Get ElInfo's \ref macroElement
Thomas Witkowski's avatar
Thomas Witkowski committed
97
98
    inline MacroElement* getMacroElement() const 
    { 
Thomas Witkowski's avatar
Thomas Witkowski committed
99
      return macroElement; 
100
    }
101

102
    /// Get ElInfo's \ref element
Thomas Witkowski's avatar
Thomas Witkowski committed
103
104
    inline Element* getElement() const 
    { 
Thomas Witkowski's avatar
Thomas Witkowski committed
105
      return element; 
106
    }
107

Thomas Witkowski's avatar
Thomas Witkowski committed
108
    /// Get ElInfo's \ref parent
Thomas Witkowski's avatar
Thomas Witkowski committed
109
110
    inline Element* getParent() const 
    { 
Thomas Witkowski's avatar
Thomas Witkowski committed
111
      return parent; 
112
    }
113

Thomas Witkowski's avatar
Thomas Witkowski committed
114
    /// Get ElInfo's \ref fillFlag
Thomas Witkowski's avatar
Thomas Witkowski committed
115
116
    inline Flag getFillFlag() const 
    { 
Thomas Witkowski's avatar
Thomas Witkowski committed
117
      return fillFlag; 
118
    }
119

120
    /// Get ElInfo's \ref level
Thomas Witkowski's avatar
Thomas Witkowski committed
121
122
    inline int getLevel() const 
    { 
123
124
125
      return level; 
    }

126
    /// Get ElInfo's \ref iChild
Thomas Witkowski's avatar
Thomas Witkowski committed
127
128
    inline int getIChild() const 
    {
129
      return iChild;
130
    }
131
132

    /** \brief
Thomas Witkowski's avatar
Thomas Witkowski committed
133
     * Get ElInfo's \ref coord[i]. This is a WorldVector<double> filled with the
134
135
     * coordinates of the i-th vertex of element \ref el.
     */
Thomas Witkowski's avatar
Thomas Witkowski committed
136
137
    inline WorldVector<double>& getCoord(int i) 
    { 
Thomas Witkowski's avatar
Thomas Witkowski committed
138
      return coord[i]; 
139
    }
140
141

    /** \brief
Thomas Witkowski's avatar
Thomas Witkowski committed
142
     * Get ElInfo's \ref coord[i]. This is a WorldVector<double> filled with the
143
144
     * coordinates of the i-th vertex of element \ref el.
     */
Thomas Witkowski's avatar
Thomas Witkowski committed
145
146
    inline const WorldVector<double>& getCoord(int i) const 
    { 
Thomas Witkowski's avatar
Thomas Witkowski committed
147
      return coord[i]; 
148
    }
149
150

    /** \brief
Thomas Witkowski's avatar
Thomas Witkowski committed
151
     * Get ElInfo's \ref coord. This is a FixVec<WorldVector<double> > filled with the
152
153
     * coordinates of the all vertice of element \ref el.
     */
Thomas Witkowski's avatar
Thomas Witkowski committed
154
155
    inline FixVec<WorldVector<double>, VERTEX>& getCoords() 
    { 
Thomas Witkowski's avatar
Thomas Witkowski committed
156
      return coord; 
157
    }
158
159

    /** \brief
Thomas Witkowski's avatar
Thomas Witkowski committed
160
     * Get ElInfo's \ref coord. This is a FixVec<WorldVector<double> > filled with the
161
162
     * coordinates of the all vertice of element \ref el.
     */
Thomas Witkowski's avatar
Thomas Witkowski committed
163
164
    inline const FixVec<WorldVector<double>, VERTEX>& getCoords() const 
    { 
Thomas Witkowski's avatar
Thomas Witkowski committed
165
      return coord; 
166
    }
167

Thomas Witkowski's avatar
Thomas Witkowski committed
168
    /// Get ElInfo's \ref oppCoord[i]
Thomas Witkowski's avatar
Thomas Witkowski committed
169
170
    inline WorldVector<double>& getOppCoord(int i) 
    { 
Thomas Witkowski's avatar
Thomas Witkowski committed
171
      return oppCoord[i]; 
172
    }
173

Thomas Witkowski's avatar
Thomas Witkowski committed
174
    /// Get ElInfo's \ref boundary[i] 
Thomas Witkowski's avatar
Thomas Witkowski committed
175
176
    inline BoundaryType getBoundary(int i) const 
    { 
Thomas Witkowski's avatar
Thomas Witkowski committed
177
      return boundary[i]; 
178
    }
179

180
    /// Get boundary type of i-th vertex/edge/face (pos).
181
182
    BoundaryType getBoundary(GeoIndex pos, int i);

Thomas Witkowski's avatar
Thomas Witkowski committed
183
    /// Get ElInfo's \ref neighbour[i]
Thomas Witkowski's avatar
Thomas Witkowski committed
184
185
    inline Element* getNeighbour(int i) const 
    { 
Thomas Witkowski's avatar
Thomas Witkowski committed
186
      return neighbour[i]; 
187
    }
188

189
    /// Get ElInfo's \ref neighbourCoord[i]
Thomas Witkowski's avatar
Thomas Witkowski committed
190
191
    inline FixVec<WorldVector<double>, VERTEX> getNeighbourCoord(int i) const 
    {
192
      return neighbourCoord[i];
193
194
    }

195
    /// Get ElInfo's \ref oppVertex[i] 
Thomas Witkowski's avatar
Thomas Witkowski committed
196
197
    inline unsigned char getOppVertex(int i) const 
    { 
198
      return oppVertex[i]; 
199
    }
200

Thomas Witkowski's avatar
Thomas Witkowski committed
201
202
    virtual int getSideOfNeighbour(int i) 
    { 
203
      return oppVertex[i]; 
204
    }
205

Thomas Witkowski's avatar
Thomas Witkowski committed
206
    /// Get ElInfo's \ref det
Thomas Witkowski's avatar
Thomas Witkowski committed
207
208
    inline double getDet() const 
    { 
Thomas Witkowski's avatar
Thomas Witkowski committed
209
      return det; 
210
    }
211

212
    /// Returns \ref grdLambda
Thomas Witkowski's avatar
Thomas Witkowski committed
213
214
    inline const DimVec<WorldVector<double> >& getGrdLambda() const 
    { 
Thomas Witkowski's avatar
Thomas Witkowski committed
215
      return grdLambda; 
216
    }
217

Thomas Witkowski's avatar
Thomas Witkowski committed
218
    /// Returns \ref projection[i]
Thomas Witkowski's avatar
Thomas Witkowski committed
219
220
    inline Projection *getProjection(int i) const 
    {
Thomas Witkowski's avatar
Thomas Witkowski committed
221
      return projection[i];
222
    }
223

224
    /// Returns \ref parametric
Thomas Witkowski's avatar
Thomas Witkowski committed
225
226
    inline bool getParametric() 
    { 
227
      return parametric; 
228
229
    }

230
231
232
233
234
235
236
237
238
239
240
241
    /// Returns \ref refinementPath
    inline unsigned long getRefinementPath() const
    {
      return refinementPath;
    } 

    /// Get \ref refinementPathLength
    inline int getRefinementPathLength() const
    {
      return refinementPathLength;
    }

242
243
244
245
    virtual mtl::dense2D<double>& getSubElemCoordsMat(int degree) const 
    {
      return subElemMatrices[degree][refinementPath];
    }
246

247
    virtual mtl::dense2D<double>& getSubElemGradCoordsMat(int degree) const 
248
    {
249
      return subElemGradMatrices[degree][refinementPath];
250
    }
251
252
253
254
255
256
257

    /** \} */ 

    /** \name setting methods
     * \{ 
     */

Thomas Witkowski's avatar
Thomas Witkowski committed
258
    /// Set ElInfo's \ref mesh
Thomas Witkowski's avatar
Thomas Witkowski committed
259
260
    inline void setMesh(Mesh* aMesh) 
    { 
Thomas Witkowski's avatar
Thomas Witkowski committed
261
      mesh = aMesh; 
262
    }
263

Thomas Witkowski's avatar
Thomas Witkowski committed
264
    /// Set ElInfo's \ref macroElement
Thomas Witkowski's avatar
Thomas Witkowski committed
265
266
    inline void setMacroElement(MacroElement* mel) 
    { 
Thomas Witkowski's avatar
Thomas Witkowski committed
267
      macroElement = mel; 
268
    }
269

270
    /// Set ElInfo's \ref element
Thomas Witkowski's avatar
Thomas Witkowski committed
271
272
    inline void setElement(Element* elem) 
    { 
Thomas Witkowski's avatar
Thomas Witkowski committed
273
      element = elem; 
274
    }
275

Thomas Witkowski's avatar
Thomas Witkowski committed
276
    /// Set ElInfo's \ref parent
Thomas Witkowski's avatar
Thomas Witkowski committed
277
278
    inline void setParent(Element* elem) 
    { 
Thomas Witkowski's avatar
Thomas Witkowski committed
279
      parent = elem; 
280
    }
281

Thomas Witkowski's avatar
Thomas Witkowski committed
282
    /// Set ElInfo's \ref fillFlag
Thomas Witkowski's avatar
Thomas Witkowski committed
283
284
    inline void setFillFlag(Flag flag) 
    { 
Thomas Witkowski's avatar
Thomas Witkowski committed
285
      fillFlag = flag; 
286
    }
287

Thomas Witkowski's avatar
Thomas Witkowski committed
288
289
    /// Sets ElInfo's \ref coord[i]. 
    inline void setCoord(int i,WorldVector<double>& c) 
Thomas Witkowski's avatar
Thomas Witkowski committed
290
    { 
Thomas Witkowski's avatar
Thomas Witkowski committed
291
      coord[i] = c; 
292
    }
293

294
    /// Sets ElInfo's \ref coord. 
Thomas Witkowski's avatar
Thomas Witkowski committed
295
    inline void setCoords(FixVec<WorldVector<double>,VERTEX >& c) 
Thomas Witkowski's avatar
Thomas Witkowski committed
296
    { 
Thomas Witkowski's avatar
Thomas Witkowski committed
297
      coord = c; 
298
    }
299

300
    /// Set ElInfo's \ref level
Thomas Witkowski's avatar
Thomas Witkowski committed
301
302
    inline void setLevel(int l) 
    { 
303
304
305
      level = l; 
    }

Thomas Witkowski's avatar
Thomas Witkowski committed
306
    /// Set ElInfo's \ref boundary[i] 
Thomas Witkowski's avatar
Thomas Witkowski committed
307
308
    inline void setBoundary(int i, BoundaryType t) 
    { 
Thomas Witkowski's avatar
Thomas Witkowski committed
309
      boundary[i] = newBound(boundary[i], t);
310
    }
311

Thomas Witkowski's avatar
Thomas Witkowski committed
312
    /// Set \ref projection[i] = p
Thomas Witkowski's avatar
Thomas Witkowski committed
313
314
    inline void setProjection(int i, Projection *p) 
    {
Thomas Witkowski's avatar
Thomas Witkowski committed
315
      projection[i] = p;
316
    }
317

Thomas Witkowski's avatar
Thomas Witkowski committed
318
    /// Set \ref det = d
Thomas Witkowski's avatar
Thomas Witkowski committed
319
320
    inline void setDet(double d) 
    { 
Thomas Witkowski's avatar
Thomas Witkowski committed
321
      det = d; 
322
    }
323

324
    /// Set \ref parametric = param
Thomas Witkowski's avatar
Thomas Witkowski committed
325
326
    inline void setParametric(bool param) 
    { 
327
      parametric = param; 
328
329
    }

330
331
332
333
334
335
336
337
338
339
340
341
    /// Set \ref refinementPath
    inline void setRefinementPath(unsigned long rPath)
    {
      refinementPath = rPath;
    } 

    /// Set \ref refinementPathLength
    inline void setRefinementPathLength(int length)
    {
      refinementPathLength = length;
    }

342
343
344
345
346
347
    /// Set ElInfo's \ref elType.
    inline void setType(int t) 
    { 
      elType = t; 
    }

348
349
350
351
352
353
354
355
356
357
358
359
360
    /** \} */


    /** \brief
     * Returns the absolute value of the determinant of the affine linear 
     * parametrization's Jacobian
     */
    virtual double calcDet() const;

    /** \brief
     * Used by non static method \ref calcDet(). Calculates the determinant
     * for a given vector of vertex coordinates.
     */
Thomas Witkowski's avatar
Thomas Witkowski committed
361
    double calcDet(const FixVec<WorldVector<double>, VERTEX> &coords) const;
362

363
    /// Checks whether flag is set in ElInfo's \ref fillFlag. If not, the program exits.
364
365
366
    void testFlag(const Flag& flag) const;

    /** \brief
367
368
     * Transforms local barycentric coordinates of a point defined on this element
     * to global world coordinates.
369
     */
370
371
    void coordToWorld(const DimVec<double>& lambda,
		      WorldVector<double>& world) const;
372
  
Thomas Witkowski's avatar
Thomas Witkowski committed
373
    /// Fills ElInfo's \ref det and \ref grdLambda entries.
374
375
376
377
378
379
380
381
382
    virtual void fillDetGrdLambda();

    /** \brief
     * Returns a pointer to a vector, which contains the barycentric coordinates
     * with respect to \ref element of a point with world coordinates world.
     * The barycentric coordinates are stored in lambda. 
     * pure virtual => must be overriden in sub-class.
     */
    virtual const int worldToCoord(const WorldVector<double>& world, 
383
				   DimVec<double>* lambda) const = 0;
384
385
386
387
388
389
390
391
392
393
394
395

    /** \brief
     * Fills this ElInfo with macro element information of mel.
     * pure virtual => must be overriden in sub-class.
     */
    virtual void fillMacroInfo(const MacroElement *mel) = 0;

    /** \brief
     * Fills this ElInfo for the child ichild using hierarchy information and
     * parent data parentInfo.
     * pure virtual => must be overriden in sub-class.
     */
396
    virtual void fillElInfo(int ichild, const ElInfo *parentInfo) = 0;
397
398
399
400
401
402
403

    /** \brief
     * calculates the Jacobian of the barycentric coordinates on \element and stores
     * the matrix in grd_lam. The return value of the function is the absolute
     * value of the determinant of the affine linear paraetrization's Jacobian.
     * pure virtual => must be overriden in sub-class.
     */
Thomas Witkowski's avatar
Thomas Witkowski committed
404
    virtual double calcGrdLambda(DimVec<WorldVector<double> >& grd_lam) = 0;
405
406
407
408
409
410
411

    /** \brief
     * calculates a normal of the given side (1d,2d: edge, 3d: face) of \ref element.
     * Returns the absolute value of the determinant of the
     * transformation to the reference element.
     * pure virtual => must be overriden in sub-class.
     */
Thomas Witkowski's avatar
Thomas Witkowski committed
412
    virtual double getNormal(int side, WorldVector<double> &normal) = 0;
413
414
415
416
417
418
419
420
421
422


    /** \brief
     * calculates a normal of the element in dim of world = dim + 1.
     * Returns the absolute value of the determinant of the
     * transformation to the reference element.
     * pure virtual => must be overriden in sub-class.
     */
    virtual double getElementNormal(WorldVector<double> &elementNormal) const 
    {
423
424
      FUNCNAME("ElInfo::getElementNormal()");

425
426
      ERROR("virtual function not implemented in this sub-class ");
    
427
      return 0.0;
428
    }
429

430
431
432
433
434
435
    /// Get ElInfo's \ref elType.
    inline int getType() const 
    { 
      return elType; 
    }

436
  protected:
437
    /// Pointer to the current mesh
Thomas Witkowski's avatar
Thomas Witkowski committed
438
    Mesh *mesh;
439

440
    /// Pointer to the current element
Thomas Witkowski's avatar
Thomas Witkowski committed
441
    Element *element;
442

Thomas Witkowski's avatar
Thomas Witkowski committed
443
444
    /// \ref element is child of element parent
    Element *parent;
445
446
447

    /** \brief 
     * \ref element is an element of the binary tree located at MacroElement 
Thomas Witkowski's avatar
Thomas Witkowski committed
448
     * macroElement
449
     */
Thomas Witkowski's avatar
Thomas Witkowski committed
450
    MacroElement *macroElement;
451
452
453
454
455

    /** \brief
     * Indicates wich elements will be called and wich information should be
     * present while mesh traversal.
     */
Thomas Witkowski's avatar
Thomas Witkowski committed
456
    Flag fillFlag;
457
458
459
460
461
462

    /** \brief 
     * Level of the element. The level is zero for macro elements and the level
     * of the children is (level of the parent + 1). level_ is filled always by
     * the traversal routines.
     */
463
464
    unsigned char level;

465
466
467
468
469
470
471
    /** \brief
     * Elements type index. This is used only for 3d, where type can be either 0, 1 or
     * 2. In all other cases type is not used and the variable is set to 0.
     * In 3d, it is filled automatically by the traversal routines.
     */
    int elType;

472
473
474
475
476
    /** \brief
     * This ElInfo is the iChild-th child of the parent element.
     */
    int iChild;

477
    /** \brief 
Thomas Witkowski's avatar
Thomas Witkowski committed
478
     * \ref coord[i] is a WorldVector<double> storing the world coordinates of the
479
480
     * i-th vertex of element \ref element.
     */
Thomas Witkowski's avatar
Thomas Witkowski committed
481
    FixVec<WorldVector<double>, VERTEX> coord;
482
483

    /** \brief 
Thomas Witkowski's avatar
Thomas Witkowski committed
484
     * boundary[i] is the BoundaryType of the i-th edge/face
485
     * for i=0,...,N_NEIGH - 1. In 3d 
Thomas Witkowski's avatar
Thomas Witkowski committed
486
     * (*boundary)[N_FACES + i] is a pointer to the Boundary
487
488
489
     * object of the i-th edge, for i=0,..,N_EDGES - 1. It is
     * a pointer to NULL for an interior edge/face.
     */
Thomas Witkowski's avatar
Thomas Witkowski committed
490
    FixVec<BoundaryType, BOUNDARY> boundary;
491
492
493
494

    /** \brief
     * Vector storing pointers to projections for each face, edge, vertex.
     */
Thomas Witkowski's avatar
Thomas Witkowski committed
495
    FixVec<Projection*, PROJECTION> projection;
496
497

    /** \brief 
Thomas Witkowski's avatar
Thomas Witkowski committed
498
     * oppCoord[i] coordinates of the i-th neighbour vertex opposite the
499
500
     * common edge/face.
     */
Thomas Witkowski's avatar
Thomas Witkowski committed
501
    FixVec<WorldVector<double>, NEIGH> oppCoord;
502
503

    /** \brief 
Thomas Witkowski's avatar
Thomas Witkowski committed
504
     * neighbour[i] pointer to the element at the edge/face with local index i.
505
506
     * It is a pointer to NULL for boundary edges/faces.
     */
Thomas Witkowski's avatar
Thomas Witkowski committed
507
    FixVec<Element*, NEIGH> neighbour;
508
509

    /** \brief
510
     * neighbourCoord[i][j] are the coordinate of the j-th vertex of the i-th
511
512
     * neighbour element with the common edge/face.
     */
513
    FixVec<FixVec<WorldVector<double>, VERTEX>, NEIGH> neighbourCoord;
514
515

    /** \brief 
Thomas Witkowski's avatar
Thomas Witkowski committed
516
     * oppVertex[i] is undefined if neighbour[i] is a pointer to NULL. 
517
518
519
     * Otherwise it is the local index of the neighbour's vertex opposite the
     * common edge/face.
     */
520
    FixVec<unsigned char, NEIGH> oppVertex;
521

Thomas Witkowski's avatar
Thomas Witkowski committed
522
    /// Elements determinant.
Thomas Witkowski's avatar
Thomas Witkowski committed
523
    double det;
524

Thomas Witkowski's avatar
Thomas Witkowski committed
525
    /// Gradient of lambda.
Thomas Witkowski's avatar
Thomas Witkowski committed
526
    DimVec<WorldVector<double> > grdLambda;
527

Thomas Witkowski's avatar
Thomas Witkowski committed
528
    /// True, if this elInfo stores parametrized information. False, otherwise.
529
    bool parametric;
530

Thomas Witkowski's avatar
Thomas Witkowski committed
531
    /// Stores the world dimension.
Thomas Witkowski's avatar
Thomas Witkowski committed
532
533
    int dimOfWorld;

534
535
536
537
    unsigned long refinementPath;

    int refinementPathLength;

538
539
540
541
542
543
544
    /** \brief
     * This is a transformation matrix used during dual traverse. It is set, if
     * the current element is the smaller element of an element pair in the traverse.
     * Then this matrix defines a mapping for points defined in barycentric 
     * coordinates on the larger element, to the barycentric coordinates of the smaller
     * element.
     */
545
    mtl::dense2D<double> subElemCoordsMat;
546

547
    mtl::dense2D<double> subElemGradCoordsMat;
548

549
  public:
550
    static std::vector<std::map<unsigned long, mtl::dense2D<double> > > subElemMatrices;
551
552
    
    static std::vector<std::map<unsigned long, mtl::dense2D<double> > > subElemGradMatrices;
553

554
555
556
557
558
559
560
    /** \brief 
     * child_vertex[el_type][child][i] = father's local vertex index of new 
     * vertex i. 4 stands for the newly generated vertex .
     */
    static const int childVertex[3][2][4];

    /** \brief 
561
     * child_edge[el_type][child][i] = father's local edge index of new edge i.
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
     * new edge 2 is half of old edge 0, new edges 4,5 are really new edges, and
     * value is different: child_edge[][][4,5] = index of same edge in other
     * child.
     */
    static const int childEdge[3][2][6];

    friend class ElInfo1d;
    friend class ElInfo2d;
    friend class ElInfo3d;
  };

}

#include "ElInfo1d.h"
#include "ElInfo2d.h"
#include "ElInfo3d.h"

#endif  // AMDIS_ELINFO_H