Flow123d
release_2.2.0-33-g759111d
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
flow123d
src
mesh
neighbours_impl.hh
Go to the documentation of this file.
1
/*!
2
*
3
* Copyright (C) 2015 Technical University of Liberec. All rights reserved.
4
*
5
* This program is free software; you can redistribute it and/or modify it under
6
* the terms of the GNU General Public License version 3 as published by the
7
* Free Software Foundation. (http://www.gnu.org/licenses/gpl-3.0.en.html)
8
*
9
* This program is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
*
13
*
14
* @file neighbours_impl.hh
15
* @brief
16
*/
17
18
#ifndef NEIGBOURS_IMPL_HH_
19
#define NEIGBOURS_IMPL_HH_
20
21
#include "
mesh/sides.h
"
22
#include "
mesh/edges.h
"
23
24
25
// side of the edge in higher dim. mesh
26
inline
SideIter
Neighbour::side
() {
27
OLD_ASSERT
(
edge
()->n_sides == 1 ,
"VB neighbouring with %d sides.\n"
,
edge
()->n_sides);
28
//DebugOut().fmt("VB neighbouring with {} sides.\n", edge_->n_sides);
29
return
edge
()->
side
(0);
30
}
31
32
inline
unsigned
int
Neighbour::edge_idx
() {
33
return
edge_idx_
;
34
}
35
36
// edge of lower dimensional mesh in VB neigh.
37
inline
Edge
*
Neighbour::edge
() {
38
return
&(
element_
->
mesh_
->
edges
[
edge_idx_
] );
39
}
40
41
// element of higher dimension mesh in VB neigh.
42
inline
ElementIter
Neighbour::element
() {
43
return
element_
;
44
}
45
46
#endif
/* NEIGBOURS_IMPL_HH_ */
Neighbour::edge
Edge * edge()
Definition:
neighbours_impl.hh:37
Edge
Definition:
edges.h:26
OLD_ASSERT
#define OLD_ASSERT(...)
Definition:
global_defs.h:131
Neighbour::edge_idx_
unsigned int edge_idx_
Definition:
neighbours.h:135
SideIter
Definition:
sides.h:117
Neighbour::edge_idx
unsigned int edge_idx()
Definition:
neighbours_impl.hh:32
Neighbour::side
SideIter side()
Definition:
neighbours_impl.hh:26
Element
Definition:
elements.h:39
Neighbour::element
ElementIter element()
Definition:
neighbours_impl.hh:42
Element::mesh_
Mesh * mesh_
Definition:
elements.h:169
edges.h
sides.h
Mesh::edges
std::vector< Edge > edges
Vector of MH edges, this should not be part of the geometrical mesh.
Definition:
mesh.h:239
Neighbour::element_
ElementIter element_
Definition:
neighbours.h:136
Edge::side
SideIter side(const unsigned int i) const
Definition:
edges.h:31
Generated by
1.8.11