]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a bug: Also catch the hp case in testing a policy pointer.
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 17 Jul 2017 23:46:55 +0000 (17:46 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 17 Jul 2017 23:57:43 +0000 (17:57 -0600)
source/dofs/dof_handler.cc

index a43401817fe80fc73cda58ac48cd4b41350b612f..e066a8324d3ba04f5db28094c930bd2955fc3b20 100644 (file)
@@ -72,7 +72,8 @@ namespace internal
     else if (dynamic_cast<const typename dealii::internal::DoFHandler::Policy::ParallelDistributed<dealii::DoFHandler<dim,spacedim> >*>(&policy)
              || dynamic_cast<const typename dealii::internal::DoFHandler::Policy::ParallelDistributed<dealii::hp::DoFHandler<dim,spacedim> >*>(&policy))
       policy_name = "Policy::ParallelDistributed<";
-    else if (dynamic_cast<const typename dealii::internal::DoFHandler::Policy::ParallelShared<dealii::DoFHandler<dim,spacedim> >*>(&policy))
+    else if (dynamic_cast<const typename dealii::internal::DoFHandler::Policy::ParallelShared<dealii::DoFHandler<dim,spacedim> >*>(&policy)
+             || dynamic_cast<const typename dealii::internal::DoFHandler::Policy::ParallelShared<dealii::hp::DoFHandler<dim,spacedim> >*>(&policy))
       policy_name = "Policy::ParallelShared<";
     else
       AssertThrow(false, ExcNotImplemented());

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.