]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Do DoFRenumbering::subdomain_wise inside the policy.
authordenis.davydov <denis.davydov@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 25 Mar 2014 21:23:38 +0000 (21:23 +0000)
committerdenis.davydov <denis.davydov@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 25 Mar 2014 21:23:38 +0000 (21:23 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_sharedtria@32695 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/dofs/dof_handler_policy.h
deal.II/source/dofs/dof_handler.cc
deal.II/source/dofs/dof_handler_policy.cc

index 102687b0dd0e43480f83b1c3b7b49390eaa2c6d0..0a9e97bb714f80c3869d8bc26ea017344f2baed3 100644 (file)
@@ -23,6 +23,7 @@
 #include <deal.II/base/exceptions.h>
 #include <deal.II/base/template_constraints.h>
 #include <deal.II/dofs/dof_tools.h>
+#include <deal.II/dofs/dof_renumbering.h>
 
 #include <vector>
 #include <map>
index 5d1bd08b2194b8ab20501615b286f8f1e20a4250..0eeea16276eaa12462f08de535dab849b2643890 100644 (file)
@@ -1174,10 +1174,6 @@ void DoFHandler<dim,spacedim>::distribute_dofs (const FiniteElement<dim,spacedim
   // hand things off to the policy
   policy->distribute_dofs (*this,number_cache);
 
-  //since get_subdomain_association querry n_dofs()
-  //the need to re-work locally_owned_dofs outside of policy class
-  if (dynamic_cast<const parallel::shared::Triangulation<dim,spacedim>*>(&*tria) == 0)
-         number_cache.locally_owned_dofs = dealii::DoFTools::locally_owned_dofs_with_subdomain(*this,(*this).get_tria().locally_owned_subdomain() );
   // initialize the block info object
   // only if this is a sequential
   // triangulation. it doesn't work
index bdb1d57b509fddc7a15273feb5b96701e104a9ce..1ee0a34a2a671f36505b735c707bb3060878019c 100644 (file)
@@ -969,6 +969,8 @@ namespace internal
                           NumberCache & number_cache) const
       {
          Sequential<dim,spacedim>::distribute_dofs (dof_handler,number_cache);
+         DoFRenumbering::subdomain_wise (dof_handler);
+         number_cache.locally_owned_dofs = dealii::DoFTools::locally_owned_dofs_with_subdomain(dof_handler,dof_handler.get_tria().locally_owned_subdomain() );
       }
 
       template <int dim, int spacedim>

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.