Flow123d  jenkins-Flow123d-linux-release-multijob-282
boundaries.cc
Go to the documentation of this file.
1 /*!
2  *
3  * Copyright (C) 2007 Technical University of Liberec. All rights reserved.
4  *
5  * Please make a following refer to Flow123d on your project site if you use the program for any purpose,
6  * especially for academic research:
7  * Flow123d, Research Centre: Advanced Remedial Technologies, Technical University of Liberec, Czech Republic
8  *
9  * This program is free software; you can redistribute it and/or modify it under the terms
10  * of the GNU General Public License version 3 as published by the Free Software Foundation.
11  *
12  * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
13  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14  * See the GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along with this program; if not,
17  * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 021110-1307, USA.
18  *
19  *
20  * $Id$
21  * $Revision$
22  * $LastChangedBy$
23  * $LastChangedDate$
24  *
25  * @file
26  * @brief Boundary conditions
27  * @ingroup mesh
28  *
29  */
30 
31 #include "system/system.hh"
32 #include "system/xio.h"
33 #include "mesh/mesh.h"
34 #include "mesh/boundaries.h"
35 #include "mesh/accessors.hh"
36 
37 
39 
40 
42 : edge_idx_(Mesh::undef_idx), bc_ele_idx_(Mesh::undef_idx),
43  mesh_(NULL)
44 {}
45 
46 
48  return &( mesh_->bc_elements[bc_ele_idx_] );
49 }
50 
52  return &( mesh_->edges[edge_idx_] );
53 }
54 
56 {
57  return mesh_->element_accessor(bc_ele_idx_, true);
58 }
59 
60 //-----------------------------------------------------------------------------
61 // vim: set cindent:
62 
???
Definition: mesh.h:109
Definition: edges.h:38
ElementAccessor< 3 > element_accessor(unsigned int idx, bool boundary=false)
Definition: mesh.cc:670
I/O functions with filename storing, able to track current line in opened file. All standard stdio fu...
Edge * edge()
Definition: boundaries.cc:51
Element * element()
Definition: boundaries.cc:47
ElementVector bc_elements
Definition: mesh.h:213
unsigned int edge_idx_
Definition: boundaries.h:87
unsigned int bc_ele_idx_
Definition: boundaries.h:88
std::vector< Edge > edges
Vector of MH edges, this should not be part of the geometrical mesh.
Definition: mesh.h:216
Mesh * mesh_
Definition: boundaries.h:89
ElementAccessor< 3 > element_accessor()
Definition: boundaries.cc:55
static flow::VectorId< unsigned int > id_to_bcd
Definition: boundaries.h:63