From de7237fdec96cad091119c2db80b0f14ac85af9d Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 21 Jul 2017 18:56:07 -0600 Subject: [PATCH] Enable hp::DoFHandler on parallel meshes. --- source/hp/dof_handler.cc | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/source/hp/dof_handler.cc b/source/hp/dof_handler.cc index d0e8ab3eab..92d44ebbb0 100644 --- a/source/hp/dof_handler.cc +++ b/source/hp/dof_handler.cc @@ -969,20 +969,11 @@ namespace hp tria(&tria, typeid(*this).name()), faces (nullptr) { - Assert ((dynamic_cast*> - (&tria) - == nullptr), - ExcMessage ("The given triangulation is parallel distributed but " - "this class does not currently support this.")); - - // decide whether we need a sequential or a parallel distributed policy + // decide whether we need a sequential or a parallel shared/distributed policy if (dynamic_cast*> (&*this->tria) != nullptr) policy.reset (new internal::DoFHandler::Policy::ParallelShared >(*this)); else if (dynamic_cast*> (&*this->tria) != nullptr) - //policy.reset (new internal::DoFHandler::Policy::ParallelDistributed >(*this)); - { - Assert (false, ExcNotImplemented()); - } + policy.reset (new internal::DoFHandler::Policy::ParallelDistributed >(*this)); else policy.reset (new internal::DoFHandler::Policy::Sequential >(*this)); -- 2.39.5