]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use a shortcut to the vector in copy_to_mg.
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 4 Feb 2010 16:25:37 +0000 (16:25 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 4 Feb 2010 16:25:37 +0000 (16:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@20498 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/multigrid/mg_transfer_prebuilt.cc

index e4f958f789375c7a35edac38dfeaffdbd69046ac..8b833a365f2893c4c89b1bbb2542395f2ca4d0a4 100644 (file)
@@ -121,11 +121,12 @@ MGTransferPrebuilt<VECTOR>::copy_to_mg (
   for (unsigned int level=mg_dof_handler.get_tria().n_levels();level != 0;)
     {
       --level;
+      VECTOR& dst_level = dst[level];
 
       typedef std::vector<std::pair<unsigned int, unsigned int> >::const_iterator IT;
       for (IT i= copy_indices[level].begin();
           i != copy_indices[level].end();++i)
-       dst[level](i->second) = src(i->first);
+       dst_level(i->second) = src(i->first);
                                       // For non-DG: degrees of
                                       // freedom in the refinement
                                       // face may need special

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.