From: Wolfgang Bangerth Date: Sat, 22 Jul 2017 00:56:07 +0000 (-0600) Subject: Enable hp::DoFHandler on parallel meshes. X-Git-Tag: v9.0.0-rc1~1192^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de7237fdec96cad091119c2db80b0f14ac85af9d;p=dealii.git Enable hp::DoFHandler on parallel meshes. --- 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));