]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Hopefully fixed a bug introduced in 32694
authordenis.davydov <denis.davydov@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 26 Apr 2014 20:32:42 +0000 (20:32 +0000)
committerdenis.davydov <denis.davydov@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 26 Apr 2014 20:32:42 +0000 (20:32 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_sharedtria@32846 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/dofs/dof_handler_policy.cc

index 3aea13f0ddbd6ee0f4a3a810f16fe386362b70d2..e05e78c173666c34b1fa5df53b93072e5d119053 100644 (file)
@@ -934,6 +934,9 @@ namespace internal
                      dealii::DoFHandler<dim,spacedim> &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<dim,spacedim> &dof_handler,
                      NumberCache &number_cache) const
       {
+          //reset number cache.
+          number_cache = NumberCache ();
+
          Sequential<dim,spacedim>::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());

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.