]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
index errors fixed
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 3 Jul 2003 10:00:21 +0000 (10:00 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 3 Jul 2003 10:00:21 +0000 (10:00 +0000)
git-svn-id: https://svn.dealii.org/trunk@7829 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 2028271441157610b319a248fdd7ae0acbd081ea..27a935d4b70ff942d250aa56201aac168cc3c8b1 100644 (file)
@@ -475,7 +475,7 @@ void MGDoFObjectAccessor<3, dim>::set_mg_vertex_dof_index (const unsigned int ve
          typename DoFAccessor<dim>::ExcInvalidObject());
   Assert (&this->dof_handler->get_fe() != 0,
          typename DoFAccessor<dim>::ExcInvalidObject());
-  Assert (vertex<4, ExcIndexRange (i,0,4));
+  Assert (vertex<8, ExcIndexRange (vertex,0,8));
   Assert (i<this->dof_handler->get_fe().dofs_per_vertex,
          ExcIndexRange (i, 0, this->dof_handler->get_fe().dofs_per_vertex));
 
@@ -511,7 +511,7 @@ MGDoFObjectAccessor<3, dim>::get_mg_dof_indices (std::vector<unsigned int> &dof_
   for (unsigned int line=0; line<12; ++line)
     for (unsigned int d=0; d<dofs_per_line; ++d)
       *next++ = this->line(line)->mg_dof_index(d);
-  for (unsigned int quad=0; quad<12; ++quad)
+  for (unsigned int quad=0; quad<6; ++quad)
     for (unsigned int d=0; d<dofs_per_quad; ++d)
       *next++ = this->quad(quad)->mg_dof_index(d);
   for (unsigned int d=0; d<dofs_per_hex; ++d)
index b5c56f839a38a790101c8221b3e069cd674f89ee..a8305a312435f71153ee253053f40d8755d8a082 100644 (file)
@@ -1356,7 +1356,7 @@ MGDoFHandler<3>::distribute_dofs_on_cell (cell_iterator &cell,
 
                                   // for the quads
   if (this->selected_fe->dofs_per_quad > 0)
-    for (unsigned int q=0; q<GeometryInfo<3>::lines_per_cell; ++q)
+    for (unsigned int q=0; q<GeometryInfo<3>::quads_per_cell; ++q)
       {
        quad_iterator quad = cell->quad(q);
        
@@ -1365,7 +1365,7 @@ MGDoFHandler<3>::distribute_dofs_on_cell (cell_iterator &cell,
                                         // numbered (check only first dof)
        if (quad->mg_dof_index(0) == DoFHandler<3>::invalid_dof_index)
                                           // if not: distribute dofs
-         for (unsigned int d=0; d<this->selected_fe->dofs_per_line; ++d)
+         for (unsigned int d=0; d<this->selected_fe->dofs_per_quad; ++d)
            quad->set_mg_dof_index (d, next_free_dof++);            
       };
 

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.