3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
vertexhandles.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3/*****************************************************************************
4 * See the file COPYING for full copying permissions. *
5 * *
6 * This program is free software: you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation, either version 3 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
18 *****************************************************************************/
25#ifndef DUMUX_VERTEX_HANDLES_HH
26#define DUMUX_VERTEX_HANDLES_HH
27
28#warning "This header is deprecated and will be removed after release 3.2. Use parallel/vectorcommdatahandle.hh"
29
31
32
33namespace Dumux {
34
35 template<class FieldType, class Container, class VertexMapper>
36 class [[deprecated("Use VectorCommDataHandleSum<VertexMapper, Container, entityCodim> instead.")]] VertexHandleSum : public VectorCommDataHandleSum<VertexMapper, Container, 0/*dummy*/>
37 {
38 using ParentType = VectorCommDataHandleSum<VertexMapper, Container, 0/*dummy*/>;
39 public:
40 VertexHandleSum(Container &container,
41 const VertexMapper &mapper)
42 : ParentType(mapper, container)
43 { };
44
45 bool contains(int dim, int codim) const
46 {
47 // only communicate vertices
48 return codim == dim;
49 }
50 };
51
52 template<class FieldType, class Container, class VertexMapper>
53 class [[deprecated("Use VectorCommDataHandleMax<VertexMapper, Container, entityCodim> instead.")]] VertexHandleMax : public VectorCommDataHandleMax<VertexMapper, Container, 0/*dummy*/>
54 {
55 using ParentType = VectorCommDataHandleMax<VertexMapper, Container, 0/*dummy*/>;
56 public:
57 VertexHandleMax(Container &container,
58 const VertexMapper &mapper)
59 : ParentType(mapper, container)
60 { };
61
62 bool contains(int dim, int codim) const
63 {
64 // only communicate vertices
65 return codim == dim;
66 }
67 };
68
69 template<class FieldType, class Container, class VertexMapper>
70 class [[deprecated("Use VectorCommDataHandleMin<VertexMapper, Container, entityCodim> instead.")]] VertexHandleMin : public VectorCommDataHandleMin<VertexMapper, Container, 0/*dummy*/>
71 {
72 using ParentType = VectorCommDataHandleMin<VertexMapper, Container, 0/*dummy*/>;
73 public:
74 VertexHandleMin(Container &container,
75 const VertexMapper &mapper)
76 : ParentType(mapper, container)
77 { };
78
79 bool contains(int dim, int codim) const
80 {
81 // only communicate vertices
82 return codim == dim;
83 }
84 };
85} // end namespace Dumux
86
87#endif
Contains a class to exchange entries of a vector.
Definition: adapt.hh:29
A data handle class to exchange entries of a vector.
Definition: vectorcommdatahandle.hh:79
Definition: vertexhandles.hh:37
bool contains(int dim, int codim) const
Definition: vertexhandles.hh:45
VertexHandleSum(Container &container, const VertexMapper &mapper)
Definition: vertexhandles.hh:40
Definition: vertexhandles.hh:54
VertexHandleMax(Container &container, const VertexMapper &mapper)
Definition: vertexhandles.hh:57
bool contains(int dim, int codim) const
Definition: vertexhandles.hh:62
Definition: vertexhandles.hh:71
bool contains(int dim, int codim) const
Definition: vertexhandles.hh:79
VertexHandleMin(Container &container, const VertexMapper &mapper)
Definition: vertexhandles.hh:74