faces = nullptr;
number_cache.n_global_dofs = 0;
- // decide whether we need a
- // sequential or a parallel
- // distributed policy
- if (dynamic_cast<const parallel::shared::Triangulation< dim, spacedim>*>
- (&t)
- != nullptr)
+ // decide whether we need a sequential or a parallel distributed policy
+ if (dynamic_cast<const parallel::shared::Triangulation< dim, spacedim>*> (&t) != nullptr)
policy.reset (new internal::DoFHandler::Policy::ParallelShared<DoFHandler<dim,spacedim> >(*this));
- else if (dynamic_cast<const parallel::distributed::Triangulation< dim, spacedim >*>
- (&t)
- == nullptr)
- policy.reset (new internal::DoFHandler::Policy::Sequential<DoFHandler<dim,spacedim> >(*this));
- else
+ else if (dynamic_cast<const parallel::distributed::Triangulation< dim, spacedim >*> (&t) != nullptr)
policy.reset (new internal::DoFHandler::Policy::ParallelDistributed<dim,spacedim>(*this));
+ else
+ policy.reset (new internal::DoFHandler::Policy::Sequential<DoFHandler<dim,spacedim> >(*this));
distribute_dofs(fe);
}
"this class does not currently support this."));
// decide whether we need a sequential or a parallel distributed policy
-// if (dynamic_cast<const parallel::shared::Triangulation< dim, spacedim>*>
-// (&tria)
-// != nullptr)
-// policy.reset (new internal::DoFHandler::Policy::ParallelShared<dim,spacedim>(*this));
-// else if (dynamic_cast<const parallel::distributed::Triangulation< dim, spacedim >*>
-// (&tria)
-// == nullptr)
- policy.reset (new internal::DoFHandler::Policy::Sequential<DoFHandler<dim,spacedim> >(*this));
-// else
-// policy.reset (new internal::DoFHandler::Policy::ParallelDistributed<dim,spacedim>(*this));
-
+ if (dynamic_cast<const parallel::shared::Triangulation< dim, spacedim>*> (&*this->tria) != nullptr)
+ policy.reset (new internal::DoFHandler::Policy::ParallelShared<DoFHandler<dim,spacedim> >(*this));
+ else if (dynamic_cast<const parallel::distributed::Triangulation< dim, spacedim >*> (&*this->tria) != nullptr)
+ //policy.reset (new internal::DoFHandler::Policy::ParallelDistributed<dim,spacedim>(*this));
+ {
+ Assert (false, ExcNotImplemented());
+ }
+ else
+ policy.reset (new internal::DoFHandler::Policy::Sequential<DoFHandler<dim,spacedim> >(*this));
create_active_fe_table ();
/////////////////////////////////
- Assert ((dynamic_cast<const parallel::shared::Triangulation< dim, spacedim >*>
- (&this->get_triangulation())
- == nullptr),
- ExcNotImplemented());
Assert ((dynamic_cast<const parallel::distributed::Triangulation< dim, spacedim >*>
(&this->get_triangulation())
== nullptr),