gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
MTrihedron.cpp
Go to the documentation of this file.
1
// Gmsh - Copyright (C) 1997-2022 C. Geuzaine, J.-F. Remacle
2
//
3
// See the LICENSE.txt file in the Gmsh root directory for license information.
4
// Please report all issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
5
6
#include "
MTrihedron.h
"
7
8
int
MTrihedron::numCommonNodesInDualGraph
(
const
MElement
*
const
other)
const
9
{
10
switch
(other->
getType
()) {
11
case
TYPE_PNT
:
return
1;
12
case
TYPE_LIN
:
return
2;
13
case
TYPE_QUA
:
return
4;
14
case
TYPE_HEX
:
return
4;
15
case
TYPE_TRIH
:
return
2;
16
default
:
return
3;
17
}
18
}
MTrihedron.h
TYPE_LIN
#define TYPE_LIN
Definition:
GmshDefines.h:65
TYPE_PNT
#define TYPE_PNT
Definition:
GmshDefines.h:64
MTrihedron::numCommonNodesInDualGraph
virtual int numCommonNodesInDualGraph(const MElement *const other) const
Definition:
MTrihedron.cpp:8
MElement::getType
virtual int getType() const =0
MElement
Definition:
MElement.h:30
TYPE_QUA
#define TYPE_QUA
Definition:
GmshDefines.h:67
TYPE_HEX
#define TYPE_HEX
Definition:
GmshDefines.h:71
TYPE_TRIH
#define TYPE_TRIH
Definition:
GmshDefines.h:76
src
geo
MTrihedron.cpp
Generated by
1.8.18