From: Wolfgang Bangerth Date: Thu, 12 Apr 2001 07:03:42 +0000 (+0000) Subject: Fix bug in reverse Cuthill-McKee code (found by Oliver Rheinbach). X-Git-Tag: v8.0.0~19339 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=384402699a1157c0f515e4f16baa9e70d070bc68;p=dealii.git Fix bug in reverse Cuthill-McKee code (found by Oliver Rheinbach). git-svn-id: https://svn.dealii.org/trunk@4446 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/dofs/dof_renumbering.cc b/deal.II/deal.II/source/dofs/dof_renumbering.cc index f6d155ede6..d7e051001e 100644 --- a/deal.II/deal.II/source/dofs/dof_renumbering.cc +++ b/deal.II/deal.II/source/dofs/dof_renumbering.cc @@ -252,8 +252,9 @@ void DoFRenumbering::Cuthill_McKee (DoFHandler &dof_handler #endif if (reversed_numbering) - for (std::vector::iterator i=new_number.begin(); i!=new_number.end(); ++i) - *i = n_dofs-*i; + for (std::vector::iterator i=new_number.begin(); + i!=new_number.end(); ++i) + *i = n_dofs-*i-1; // actually perform renumbering; // this is dimension specific and diff --git a/deal.II/doc/news/2001/3.1.0-vs-3.1.1.html b/deal.II/doc/news/2001/3.1.0-vs-3.1.1.html index 0ca26461b1..c8a343f19b 100644 --- a/deal.II/doc/news/2001/3.1.0-vs-3.1.1.html +++ b/deal.II/doc/news/2001/3.1.0-vs-3.1.1.html @@ -14,6 +14,16 @@

Changes between versions 3.1 and 3.1.1

    +
  1. + Fixed: the DoFRenumbering::Cuthill_McKee function + did not work correctly when giving the reversed_numbering flag (off-by-one + indexing). This is now fixed. +
    + (Oliver Rheinbach 2001/04/12) +

    +
  2. Fixed: When using Neuman boundary functions in the KellyErrorEstimator class, it was diff --git a/deal.II/doc/news/2001/c-3-1.html b/deal.II/doc/news/2001/c-3-1.html index 708a0360b5..e3b4d935f9 100644 --- a/deal.II/doc/news/2001/c-3-1.html +++ b/deal.II/doc/news/2001/c-3-1.html @@ -317,6 +317,16 @@ documentation, etc.

    deal.II

      +
    1. + Fixed: the DoFRenumbering::Cuthill_McKee function + did not work correctly when giving the reversed_numbering flag (off-by-one + indexing). This is now fixed. +
      + (Oliver Rheinbach 2001/04/12) +

      +
    2. Changed: A typedef FunctionMap was declared in at least four places previously (in classes