From: hartmann Date: Wed, 19 May 2004 09:41:47 +0000 (+0000) Subject: Use of new MGLevelObject::operator = function. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23aef5b58bc6d476fc935ac83022e073fc2bcd64;p=dealii-svn.git Use of new MGLevelObject::operator = function. git-svn-id: https://svn.dealii.org/trunk@9268 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/multigrid/mg_transfer.templates.h b/deal.II/deal.II/include/multigrid/mg_transfer.templates.h index ce42ffd8e1..54e53b23c3 100644 --- a/deal.II/deal.II/include/multigrid/mg_transfer.templates.h +++ b/deal.II/deal.II/include/multigrid/mg_transfer.templates.h @@ -350,7 +350,7 @@ MGTransferSelect::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::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);