]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix bug (1.31->1.32).
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 12 Apr 2001 07:22:34 +0000 (07:22 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 12 Apr 2001 07:22:34 +0000 (07:22 +0000)
git-svn-id: https://svn.dealii.org/branches/Branch-3-1@4447 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/dofs/dof_renumbering.cc

index f97530e11d1ff016de5f66290b71e62682f24413..992cc8040c2d8dc1d242ebf747395f518e4d8a55 100644 (file)
@@ -248,8 +248,9 @@ void DoFRenumbering::Cuthill_McKee (DoFHandler<dim>                 &dof_handler
 #endif
 
   if (reversed_numbering)
-    for (std::vector<unsigned int>::iterator i=new_number.begin(); i!=new_number.end(); ++i)
-      *i = n_dofs-*i;
+    for (std::vector<unsigned int>::iterator i=new_number.begin();
+        i!=new_number.end(); ++i)
+      *i = n_dofs-*i-1;
 
                                   // actually perform renumbering;
                                   // this is dimension specific and

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.