From: denis.davydov Date: Sat, 26 Apr 2014 20:32:42 +0000 (+0000) Subject: Hopefully fixed a bug introduced in 32694 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79f79a93e414379c1e9f74f205a4945f4e4bb954;p=dealii-svn.git Hopefully fixed a bug introduced in 32694 git-svn-id: https://svn.dealii.org/branches/branch_sharedtria@32846 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/dofs/dof_handler_policy.cc b/deal.II/source/dofs/dof_handler_policy.cc index 3aea13f0dd..e05e78c173 100644 --- a/deal.II/source/dofs/dof_handler_policy.cc +++ b/deal.II/source/dofs/dof_handler_policy.cc @@ -934,6 +934,9 @@ namespace internal dealii::DoFHandler &dof_handler, NumberCache &number_cache) const { + //reset number cache. + number_cache = NumberCache (); + Implementation::renumber_dofs (new_numbers, IndexSet(0), dof_handler, true); @@ -995,6 +998,9 @@ namespace internal dealii::DoFHandler &dof_handler, NumberCache &number_cache) const { + //reset number cache. + number_cache = NumberCache (); + Sequential::renumber_dofs (new_numbers,dof_handler,number_cache); //correct number_cache: number_cache.locally_owned_dofs = dealii::DoFTools::locally_owned_dofs_with_subdomain(dof_handler,dof_handler.get_tria().locally_owned_subdomain() ); @@ -2438,6 +2444,8 @@ namespace internal Assert (new_numbers.size() == dof_handler.locally_owned_dofs().n_elements(), ExcInternalError()); + //reset number cache. + number_cache = NumberCache (); #ifndef DEAL_II_WITH_P4EST Assert (false, ExcNotImplemented());