]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Initialize member variables. 3471/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 5 Nov 2016 13:21:42 +0000 (07:21 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 5 Nov 2016 13:21:42 +0000 (07:21 -0600)
source/multigrid/multigrid.cc

index 85118e18c8520f30d3e02904ab393d047311a4e3..d5ccb8210b56f7bdc772f4eff910067a12f11be2 100644 (file)
@@ -36,21 +36,24 @@ DEAL_II_NAMESPACE_OPEN
 
 
 MGTransferBlockBase::MGTransferBlockBase ()
+  :
+  n_mg_blocks (0)
 {}
 
 
 
-MGTransferBlockBase::MGTransferBlockBase (
-  const MGConstrainedDoFs &mg_c)
+MGTransferBlockBase::MGTransferBlockBase (const MGConstrainedDoFs &mg_c)
   :
+  n_mg_blocks (0),
   mg_constrained_dofs(&mg_c)
 {}
 
 
 
-MGTransferBlockBase::MGTransferBlockBase (
-  const ConstraintMatrix &/*c*/, const MGConstrainedDoFs &mg_c)
+MGTransferBlockBase::MGTransferBlockBase (const ConstraintMatrix &/*c*/,
+                                          const MGConstrainedDoFs &mg_c)
   :
+  n_mg_blocks (0),
   mg_constrained_dofs(&mg_c)
 {}
 
@@ -197,12 +200,17 @@ MGTransferBlockBase::memory_consumption () const
 
 template<typename number>
 MGTransferSelect<number>::MGTransferSelect ()
+  :
+  selected_component (0),
+  mg_selected_component (0)
 {}
 
 
 template<typename number>
 MGTransferSelect<number>::MGTransferSelect (const ConstraintMatrix &c)
   :
+  selected_component (0),
+  mg_selected_component (0),
   constraints(&c)
 {}
 
@@ -246,22 +254,27 @@ void MGTransferSelect<number>::restrict_and_add (
 
 template <typename number>
 MGTransferBlockSelect<number>::MGTransferBlockSelect ()
+  :
+  selected_block (0)
 {}
 
 
 
 template <typename number>
-MGTransferBlockSelect<number>::MGTransferBlockSelect (
-  const MGConstrainedDoFs &mg_c)
-  : MGTransferBlockBase(mg_c)
+MGTransferBlockSelect<number>::MGTransferBlockSelect (const MGConstrainedDoFs &mg_c)
+  :
+  MGTransferBlockBase(mg_c),
+  selected_block (0)
 {}
 
 
 
 template <typename number>
-MGTransferBlockSelect<number>::MGTransferBlockSelect (
-  const ConstraintMatrix &/*c*/, const MGConstrainedDoFs &mg_c)
-  : MGTransferBlockBase(mg_c)
+MGTransferBlockSelect<number>::MGTransferBlockSelect (const ConstraintMatrix &/*c*/,
+                                                      const MGConstrainedDoFs &mg_c)
+  :
+  MGTransferBlockBase(mg_c),
+  selected_block (0)
 {}
 
 
@@ -273,10 +286,10 @@ MGTransferBlockSelect<number>::~MGTransferBlockSelect ()
 
 
 template <typename number>
-void MGTransferBlockSelect<number>::prolongate (
-  const unsigned int   to_level,
-  Vector<number>       &dst,
-  const Vector<number> &src) const
+void
+MGTransferBlockSelect<number>::prolongate (const unsigned int   to_level,
+                                           Vector<number>       &dst,
+                                           const Vector<number> &src) const
 {
   Assert ((to_level >= 1) && (to_level<=prolongation_matrices.size()),
           ExcIndexRange (to_level, 1, prolongation_matrices.size()+1));
@@ -288,10 +301,10 @@ void MGTransferBlockSelect<number>::prolongate (
 
 
 template <typename number>
-void MGTransferBlockSelect<number>::restrict_and_add (
-  const unsigned int   from_level,
-  Vector<number>       &dst,
-  const Vector<number> &src) const
+void
+MGTransferBlockSelect<number>::restrict_and_add (const unsigned int   from_level,
+                                                 Vector<number>       &dst,
+                                                 const Vector<number> &src) const
 {
   Assert ((from_level >= 1) && (from_level<=prolongation_matrices.size()),
           ExcIndexRange (from_level, 1, prolongation_matrices.size()+1));

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.