mesh_communication.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2014 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
3 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License, or (at your option) any later version.
8 
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
13 
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 
18 
19 
20 #ifndef LIBMESH_MESH_COMMUNICATION_H
21 #define LIBMESH_MESH_COMMUNICATION_H
22 
23 
24 
25 // Local Includes -----------------------------------
26 #include "libmesh/libmesh_common.h"
27 #include "libmesh/mesh_tools.h"
28 
29 // C++ Includes -----------------------------------
30 
31 namespace libMesh
32 {
33 
34 // Forward declarations
35 class MeshBase;
36 class ParallelMesh;
37 class BoundaryInfo;
38 template <typename T> class LocationMap;
39 
40 
41 
51 // ------------------------------------------------------------
52 // MeshCommunication class definition
54 {
55 public:
56 
61 
66 
70  void clear ();
71 
72 // /**
73 // * Finds all the processors that may contain
74 // * elements that neighbor my elements. This list
75 // * is guaranteed to include all processors that border
76 // * any of my elements, but may include additional ones as
77 // * well. This method computes bounding boxes for the
78 // * elements on each processor and checks for overlaps.
79 // */
80 // void find_neighboring_processors(const MeshBase &);
81 
88  void broadcast (MeshBase &) const;
89 
101  void redistribute (ParallelMesh &) const;
102 
107 
118  void gather (const processor_id_type root_id, ParallelMesh &) const;
119 
130 
145  void delete_remote_elements (ParallelMesh &, const std::set<Elem *> &) const;
146 
157  void assign_global_indices (MeshBase &) const;
158 
159 
164  template <typename ForwardIterator>
166  const MeshTools::BoundingBox &,
167  const ForwardIterator &,
168  const ForwardIterator &,
169  std::vector<dof_id_type> &) const;
170 
175 
183 
191 
200 };
201 
202 
203 
204 //--------------------------------------------------------------
205 // MeshCommunication inline members
206 
207 
208 } // namespace libMesh
209 
210 #endif // LIBMESH_MESH_COMMUNICATION_H

Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:06 UTC

Hosted By:
SourceForge.net Logo