]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use of new MGLevelObject::operator = function.
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 19 May 2004 09:41:47 +0000 (09:41 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 19 May 2004 09:41:47 +0000 (09:41 +0000)
git-svn-id: https://svn.dealii.org/trunk@9268 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/multigrid/mg_transfer.templates.h

index ce42ffd8e150df237dab66849ff50be045cff037..54e53b23c35515dc787d55c2312a43019c2caa52 100644 (file)
@@ -350,7 +350,7 @@ MGTransferSelect<number>::do_copy_to_mg (
   unsigned int minlevel = dst.get_minlevel();
   unsigned int maxlevel = dst.get_maxlevel();
   
-  dst.clear();
+  dst=0;
   
   Assert(sizes.size()==mg_dof_handler.get_tria().n_levels(),
         ExcMatricesNotBuilt());
@@ -683,7 +683,7 @@ MGTransferBlock<number>::copy_to_mg (
   unsigned int minlevel = dst.get_minlevel();
   unsigned int maxlevel = dst.get_maxlevel();
   
-  dst.clear();
+  dst=0;
 
   MGTools::reinit_vector(mg_dof_handler, dst, mg_selected, mg_target_component);
   

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.