sparsity_pattern.C
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 // Local Includes -----------------------------------
21 #include "libmesh/dof_map.h"
23 
24 
25 
26 namespace libMesh
27 {
28  namespace SparsityPattern
29  {
30 
31 
32  //-------------------------------------------------------
33  // we need to implement these constructors here so that
34  // a full DofMap definition is available.
35  Build::Build (const MeshBase &mesh_in,
36  const DofMap &dof_map_in,
37  const CouplingMatrix *dof_coupling_in,
38  const bool implicit_neighbor_dofs_in,
39  const bool need_full_sparsity_pattern_in) :
40  ParallelObject(dof_map_in),
41  mesh(mesh_in),
42  dof_map(dof_map_in),
43  dof_coupling(dof_coupling_in),
44  implicit_neighbor_dofs(implicit_neighbor_dofs_in),
45  need_full_sparsity_pattern(need_full_sparsity_pattern_in),
46  sparsity_pattern(),
47  nonlocal_pattern(),
48  n_nz(),
49  n_oz()
50  {}
51 
52 
53 
55  ParallelObject(other),
56  mesh(other.mesh),
57  dof_map(other.dof_map),
58  dof_coupling(other.dof_coupling),
59  implicit_neighbor_dofs(other.implicit_neighbor_dofs),
60  need_full_sparsity_pattern(other.need_full_sparsity_pattern),
61  sparsity_pattern(),
62  nonlocal_pattern(),
63  n_nz(),
64  n_oz()
65  {}
66 
67 
68 
69  } // namespace SparsityPattern
70 } // namespace libMesh

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

Hosted By:
SourceForge.net Logo