]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Take over patch 21431 from mainline.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 1 Jul 2010 16:54:24 +0000 (16:54 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 1 Jul 2010 16:54:24 +0000 (16:54 +0000)
git-svn-id: https://svn.dealii.org/branches/releases/Branch-6-3@21432 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/dofs/block_info.h
deal.II/deal.II/source/dofs/block_info.cc
deal.II/deal.II/source/grid/tria.cc
deal.II/doc/news/changes.h

index b9054d4dd0f69f5bd9c4548bad16de5933e00e44..3cde99c2597d05a555cf488d561721cc8c9ccdd4 100644 (file)
@@ -14,6 +14,7 @@
 #define __deal2__block_info_h
 
 #include <base/subscriptor.h>
+#include <base/memory_consumption.h>
 #include <lac/block_indices.h>
 
 DEAL_II_NAMESPACE_OPEN
@@ -97,7 +98,7 @@ class BlockInfo : public Subscriptor
                                      */
     template <int dim, int spacedim>
     void initialize(const DoFHandler<dim, spacedim>&);
-    
+
                                     /**
                                      * @brief Fill the object with values
                                      * describing level block
@@ -112,7 +113,7 @@ class BlockInfo : public Subscriptor
                                      */
     template <int dim, int spacedim>
     void initialize(const MGDoFHandler<dim, spacedim>&, bool levels_only = false);
-    
+
                                     /**
                                      * @brief Initialize block structure
                                      * on cells and compute
@@ -121,20 +122,20 @@ class BlockInfo : public Subscriptor
                                      */
     template <int dim, int spacedim>
     void initialize_local(const DoFHandler<dim, spacedim>&);
-    
+
                                     /**
                                      * Access the BlockIndices
                                      * structure of the global
                                      * system.
                                      */
     const BlockIndices& global() const;
-    
+
                                     /**
                                      * Access BlockIndices for the
                                      * local system on a cell.
                                      */
     const BlockIndices& local() const;
-    
+
                                     /**
                                      * Access the BlockIndices
                                      * structure of a level in the
@@ -164,13 +165,13 @@ class BlockInfo : public Subscriptor
                                      * The number of base elements.
                                      */
     unsigned int n_base_elements() const;
-    
+
                                     /**
                                      * Return the base element of
                                      * this index.
                                      */
     unsigned int base_element(unsigned int i) const;
-    
+
                                     /**
                                      * Determine an estimate for the
                                      * memory consumption (in bytes)
@@ -188,19 +189,19 @@ class BlockInfo : public Subscriptor
                                      * @brief The multilevel block structure.
                                      */
     std::vector<BlockIndices> levels;
-    
+
                                     /**
                                      * @brief The block structure
                                      * of the cell systems.
                                      */
     BlockIndices bi_local;
-    
+
                                     /**
                                      * The base element associated
                                      * with each block.
                                      */
     std::vector<unsigned int> base_elements;
-    
+
                                     /**
                                      * A vector containing the
                                      * renumbering from the
@@ -269,6 +270,20 @@ BlockInfo::n_base_elements() const
 
 
 
+inline
+unsigned int
+BlockInfo::memory_consumption () const
+{
+  unsigned int mem = (MemoryConsumption::memory_consumption (bi_global) +
+                     MemoryConsumption::memory_consumption (levels) +
+                     MemoryConsumption::memory_consumption (bi_local) +
+                     MemoryConsumption::memory_consumption (base_elements)
+  );
+
+  return mem;
+}
+
+
 DEAL_II_NAMESPACE_CLOSE
 
 #endif
index 2c176773742339e3019162d5768d2f80cf34455d..e3b2991c6f9ac52fe225c51a4f8e030946c1a418 100644 (file)
@@ -12,7 +12,6 @@
 //---------------------------------------------------------------------------
 
 
-#include <base/memory_consumption.h>
 #include <dofs/block_info.h>
 #include <dofs/dof_handler.h>
 #include <dofs/dof_tools.h>
@@ -73,20 +72,6 @@ BlockInfo::initialize(const MGDoFHandler<dim, spacedim>& dof, bool levels_only)
 }
 
 
-unsigned int
-BlockInfo::memory_consumption () const
-{
-  unsigned int mem = (MemoryConsumption::memory_consumption (bi_global) +
-                     MemoryConsumption::memory_consumption (levels) +
-                     MemoryConsumption::memory_consumption (bi_local) +
-                     MemoryConsumption::memory_consumption (base_elements)
-  );
-
-  return mem;
-}
-
-
-
 template void BlockInfo::initialize(const DoFHandler<deal_II_dimension,deal_II_dimension>&);
 template void BlockInfo::initialize(const MGDoFHandler<deal_II_dimension,deal_II_dimension>&, bool);
 template void BlockInfo::initialize_local(const DoFHandler<deal_II_dimension,deal_II_dimension>&);
index 24aa7f29862ecadedb2cec1521c179db0df364ac..06cbc43b944ba53b6b84e5ac74cfc038ad7b2864 100644 (file)
@@ -11458,6 +11458,7 @@ namespace internal
 {
   namespace Triangulation
   {
+    inline
     unsigned int
     n_cells (const internal::Triangulation::NumberCache<1> &c)
     {
@@ -11465,6 +11466,7 @@ namespace internal
     }
 
 
+    inline
     unsigned int
     n_active_cells (const internal::Triangulation::NumberCache<1> &c)
     {
@@ -11472,6 +11474,7 @@ namespace internal
     }
 
 
+    inline
     unsigned int
     n_cells (const internal::Triangulation::NumberCache<2> &c)
     {
@@ -11479,6 +11482,7 @@ namespace internal
     }
 
 
+    inline
     unsigned int
     n_active_cells (const internal::Triangulation::NumberCache<2> &c)
     {
@@ -11486,6 +11490,7 @@ namespace internal
     }
 
 
+    inline
     unsigned int
     n_cells (const internal::Triangulation::NumberCache<3> &c)
     {
@@ -11493,6 +11498,7 @@ namespace internal
     }
 
 
+    inline
     unsigned int
     n_active_cells (const internal::Triangulation::NumberCache<3> &c)
     {
index c1ef366600fb16216e65d2a5487f8023249b89ee..81c4d4e8c21721bf2e3643d80907366f598dc984 100644 (file)
@@ -38,6 +38,16 @@ inconvenience this causes.
 <h3>General</h3>
 
 <ol>
+  <li>
+  <p>Fixed: Linking with more than one of the deal.II 1d, 2d, or 3d libraries
+  when using static libraries did not work. This is now fixed. However, due to
+  GCC bug <a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10591"
+  target="_top">10591</a>, GCC versions prior to and including 4.1.x will
+  still not work.
+  <br>
+  (WB 2010/07/01)
+  </p>
+
   <li>
   <p>Fixed: GCC version 4.0.1 had a bug that prevented it from compiling
   release 6.3.0 because it apparently had an infinite loop allocating
@@ -46,7 +56,7 @@ inconvenience this causes.
   this GCC version in their Xcode environment.
   <br>
   (WB 2010/06/30)
-  </p>  
+  </p>
 
   <li>
   <p>Fixed: Configuring with an external BOOST version did not work when
@@ -54,7 +64,7 @@ inconvenience this causes.
   to another configure test. This is now fixed.
   <br>
   (Bradley Froehle 2010/06/29)
-  </p>  
+  </p>
 </ol>
 
 
@@ -77,7 +87,7 @@ inconvenience this causes.
   10.0. This is now fixed.
   <br>
   (Martin Kronbichler, WB 2010/06/28)
-  </p>  
+  </p>
 </ol>
 
 
@@ -92,7 +102,7 @@ inconvenience this causes.
   This is now fixed.
   <br>
   (WB 2010/06/28)
-  </p>  
+  </p>
 </ol>
 
 

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.