From 84f189da03babcc74bda7942b2065abb0984a822 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Sat, 8 Jun 2019 21:31:29 +0200 Subject: [PATCH] Avoid unused variable --- source/dofs/dof_handler_policy.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/dofs/dof_handler_policy.cc b/source/dofs/dof_handler_policy.cc index 50e6b1f64c..08b99293b5 100644 --- a/source/dofs/dof_handler_policy.cc +++ b/source/dofs/dof_handler_policy.cc @@ -5753,6 +5753,8 @@ namespace internal // general case const IndexSet index_set = dof_handler->locally_owned_mg_dofs(level); +#ifdef DEAL_II_WITH_MPI + constexpr int dim = DoFHandlerType::dimension; constexpr int spacedim = DoFHandlerType::space_dimension; const parallel::Triangulation *tr = @@ -5760,7 +5762,6 @@ namespace internal &this->dof_handler->get_triangulation())); Assert(tr != nullptr, ExcInternalError()); -#ifdef DEAL_II_WITH_MPI const unsigned int my_rank = Utilities::MPI::this_mpi_process(tr->get_communicator()); -- 2.39.5