git-svn-id: https://svn.dealii.org/branches/branch_sharedtria@32695
0785d39b-7218-0410-832d-
ea1e28bc413d
#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>
// 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
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