]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
It makes Clang happier if we forward declare things as struct instead of class if...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 21 Aug 2011 04:07:38 +0000 (04:07 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 21 Aug 2011 04:07:38 +0000 (04:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@24152 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/multigrid/mg_constrained_dofs.h
deal.II/include/deal.II/multigrid/mg_dof_accessor.h
deal.II/include/deal.II/multigrid/mg_dof_handler.h

index 805b43bf7db0a11bf2e67ecaf686bb7e2e76ed7f..ed4db82c04df8e300505b560d21ea56b5cd0694b 100644 (file)
@@ -1,7 +1,7 @@
 //---------------------------------------------------------------------------
 //    $Id$
 //
-//    Copyright (C) 2010 by the deal.II authors
+//    Copyright (C) 2010, 2011 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -23,7 +23,7 @@
 DEAL_II_NAMESPACE_OPEN
 
 template <int dim, int spacedim> class MGDoFHandler;
-template <int dim> class FunctionMap;
+template <int dim> struct FunctionMap;
 
 
 /**
@@ -83,7 +83,7 @@ class MGConstrainedDoFs : public Subscriptor
 
                                     /**
                                      * Determine whether a dof index
-                                     * is at the refinement edge and 
+                                     * is at the refinement edge and
                                       * subject to a boundary
                                      * constraint .
                                      */
@@ -119,14 +119,14 @@ class MGConstrainedDoFs : public Subscriptor
       get_refinement_edge_boundary_indices () const;
 
                                     /**
-                                     * Return if boundary_indices need to 
+                                     * Return if boundary_indices need to
                                       * be set or not.
                                      */
 
     bool set_boundary_values () const;
 
                                     /**
-                                     * Return if the finite element requires 
+                                     * Return if the finite element requires
                                       * continuity across refinement edges.
                                       */
     bool continuity_across_refinement_edges () const;
@@ -171,7 +171,7 @@ MGConstrainedDoFs::initialize(const MGDoFHandler<dim,spacedim>& dof)
       refinement_edge_indices[l].resize(dof.n_dofs(l));
       refinement_edge_boundary_indices[l].resize(dof.n_dofs(l));
     }
-  MGTools::extract_inner_interface_dofs (dof, refinement_edge_indices, 
+  MGTools::extract_inner_interface_dofs (dof, refinement_edge_indices,
                                         refinement_edge_boundary_indices);
 }
 
@@ -188,30 +188,30 @@ MGConstrainedDoFs::initialize(
   boundary_indices.resize(nlevels);
   refinement_edge_indices.resize(nlevels);
   refinement_edge_boundary_indices.resize(nlevels);
-  
+
   for(unsigned int l=0; l<nlevels; ++l)
     {
       boundary_indices[l].clear();
       refinement_edge_indices[l].resize(dof.n_dofs(l));
       refinement_edge_boundary_indices[l].resize(dof.n_dofs(l));
     }
-  
+
   MGTools::make_boundary_list (dof, function_map, boundary_indices, component_mask);
-  MGTools::extract_inner_interface_dofs (dof, refinement_edge_indices, 
+  MGTools::extract_inner_interface_dofs (dof, refinement_edge_indices,
                                         refinement_edge_boundary_indices);
 }
 
 
 inline
 void
-MGConstrainedDoFs::clear() 
+MGConstrainedDoFs::clear()
 {
   for(unsigned int l=0; l<boundary_indices.size(); ++l)
     boundary_indices[l].clear();
-  
+
   for(unsigned int l=0; l<refinement_edge_indices.size(); ++l)
     refinement_edge_indices[l].clear();
-  
+
   for(unsigned int l=0; l<refinement_edge_boundary_indices.size(); ++l)
     refinement_edge_boundary_indices[l].clear();
 }
@@ -219,7 +219,7 @@ MGConstrainedDoFs::clear()
 
 inline
 bool
-MGConstrainedDoFs::is_boundary_index (const unsigned int level, 
+MGConstrainedDoFs::is_boundary_index (const unsigned int level,
                                  const unsigned int index) const
 {
   AssertIndexRange(level, boundary_indices.size());
@@ -275,16 +275,16 @@ MGConstrainedDoFs::get_refinement_edge_boundary_indices () const
 }
 
 inline
-bool 
+bool
 MGConstrainedDoFs::set_boundary_values () const
 {
-  const bool boundary_values_need_to_be_set 
+  const bool boundary_values_need_to_be_set
     = boundary_indices.size()!=0;
   return boundary_values_need_to_be_set;
 }
 
 inline
-bool 
+bool
 MGConstrainedDoFs::continuity_across_refinement_edges () const
 {
   bool is_continuous = false;
index f35ae7b780a4d47bb9350a7268435c8f80bb5c1c..786978ccc7d33ac3a37f85140f9586e4128cc888 100644 (file)
@@ -1,7 +1,7 @@
 //---------------------------------------------------------------------------
 //    $Id$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009, 2010 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2011 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -27,7 +27,7 @@ namespace internal
 {
   namespace MGDoFHandler
   {
-    class Implementation;
+    struct Implementation;
   }
 }
 
index 1ca96fbf3c115ffb49fc1d2599097f53b8e2cb98..be6a2d3bf42756cf3b193ba9c3e7b16fda760ff4 100644 (file)
@@ -1,7 +1,7 @@
 //---------------------------------------------------------------------------
 //    $Id$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010, 2011 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -24,7 +24,7 @@ namespace internal
 {
   namespace MGDoFHandler
   {
-    class Implementation;
+    struct Implementation;
   }
 }
 
@@ -104,7 +104,7 @@ class MGDoFHandler : public DoFHandler<dim,spacedim>
                                      * Destructor
                                      */
     virtual ~MGDoFHandler ();
-    
+
                                     /**
                                      * Go through the triangulation
                                      * and distribute the degrees of

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.