]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
error in get_mg_dof_values removed
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 25 Jun 1999 17:14:50 +0000 (17:14 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 25 Jun 1999 17:14:50 +0000 (17:14 +0000)
git-svn-id: https://svn.dealii.org/trunk@1477 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/dofs/mg_dof_accessor.cc
deal.II/deal.II/source/multigrid/mg_dof_accessor.cc

index 2807fd47e10303f03b659ee8737f83f76dc60fa4..29c0c8a297e68621ef836e97407cf66d19a04701 100644 (file)
@@ -563,7 +563,7 @@ MGDoFCellAccessor<2>::get_mg_dof_values (const Vector<double> &values,
   Assert (&dof_handler->get_fe() != 0, ExcInvalidObject());
   Assert (dof_values.size() == dof_handler->get_fe().total_dofs,
          ExcVectorDoesNotMatch());
-  Assert (values.size() == dof_handler->n_dofs(),
+  Assert (values.size() == mg_dof_handler->n_dofs(present_level),
          ExcVectorDoesNotMatch());
 
   const unsigned int dofs_per_vertex = dof_handler->get_fe().dofs_per_vertex,
index 2807fd47e10303f03b659ee8737f83f76dc60fa4..29c0c8a297e68621ef836e97407cf66d19a04701 100644 (file)
@@ -563,7 +563,7 @@ MGDoFCellAccessor<2>::get_mg_dof_values (const Vector<double> &values,
   Assert (&dof_handler->get_fe() != 0, ExcInvalidObject());
   Assert (dof_values.size() == dof_handler->get_fe().total_dofs,
          ExcVectorDoesNotMatch());
-  Assert (values.size() == dof_handler->n_dofs(),
+  Assert (values.size() == mg_dof_handler->n_dofs(present_level),
          ExcVectorDoesNotMatch());
 
   const unsigned int dofs_per_vertex = dof_handler->get_fe().dofs_per_vertex,

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.