]> https://gitweb.dealii.org/ - dealii.git/commitdiff
instantiate block version of compute_row_length_vector
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 22 Mar 2006 15:08:39 +0000 (15:08 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 22 Mar 2006 15:08:39 +0000 (15:08 +0000)
git-svn-id: https://svn.dealii.org/trunk@12658 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/dofs/dof_tools.cc

index ade6ab8fcfecb1335041771d6226fa6f2d8c3425..f9a9b078d5f56821e20f82fbdad92da9430e9b8e 100644 (file)
@@ -240,6 +240,18 @@ DoFTools::compute_row_length_vector(
     }
 }
 
+template <class DH>
+void
+DoFTools::compute_row_length_vector(
+  const DH& dofs,
+  std::vector<std::vector<unsigned int> >& row_lengths,
+  const Table<2,Coupling>&,
+  const Table<2,Coupling>&)
+{
+  Assert (false, ExcNotImplemented());
+  Assert (row_lengths.size() == dofs.n_dofs(),
+         ExcDimensionMismatch(row_lengths.size(), dofs.n_dofs()));
+}
 
 #else
 
@@ -804,7 +816,8 @@ DoFTools::compute_row_length_vector(
   
                                   // Function starts here by
                                   // resetting the counters.
-  std::fill(row_lengths.begin(), row_lengths.end(), 0);
+  for (unsigned int i=0;i<row_lengths.size();++i)
+    std::fill(row_lengths[i].begin(), row_lengths[i].end(), 0);
                                   // We need the user flags, so we
                                   // save them for later restoration
   std::vector<bool> old_flags;
@@ -4003,6 +4016,18 @@ DoFTools::compute_row_length_vector(
   const hp::DoFHandler<deal_II_dimension>& dofs, std::vector<unsigned int>& row_lengths,
   const Table<2,Coupling>& couplings, const Table<2,Coupling>& flux_couplings);
 
+template void
+DoFTools::compute_row_length_vector(
+  const DoFHandler<deal_II_dimension>&,
+  std::vector<std::vector<unsigned int> >&,
+  const Table<2,Coupling>& couplings, const Table<2,Coupling>& flux_couplings);
+
+template void
+DoFTools::compute_row_length_vector(
+  const hp::DoFHandler<deal_II_dimension>&,
+  std::vector<std::vector<unsigned int> >&,
+  const Table<2,Coupling>& couplings, const Table<2,Coupling>& flux_couplings);
+
 template void
 DoFTools::make_sparsity_pattern<DoFHandler<deal_II_dimension>,SparsityPattern>
 (const DoFHandler<deal_II_dimension> &dof,

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.