]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Properly size arguments to MGTools::count_dofs_per_block().
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 7 Jan 2010 13:22:34 +0000 (13:22 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 7 Jan 2010 13:22:34 +0000 (13:22 +0000)
git-svn-id: https://svn.dealii.org/trunk@20328 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/multigrid/mg_transfer_block.cc

index 9684b3668c99a90366ab51835b476c4f4f5f06f4..c2a149d0bb4947d7204829c45c6ca4d5d5fb1bed 100644 (file)
@@ -227,7 +227,8 @@ void MGTransferBlockBase::build_matrices (
       mg_block[i] = numbers::invalid_unsigned_int;
 
                                   // Compute the lengths of all blocks
-  sizes.resize(n_levels);
+  sizes.clear ();
+  sizes.resize(n_levels, std::vector<unsigned int>(fe.n_blocks()));
   MGTools::count_dofs_per_block(mg_dof, sizes);
 
                                   // Fill some index vectors

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.