]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid unused variable 8311/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sat, 8 Jun 2019 19:31:29 +0000 (21:31 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sat, 8 Jun 2019 19:33:12 +0000 (21:33 +0200)
source/dofs/dof_handler_policy.cc

index 50e6b1f64c9e269435933fa15ffec90d0d0bf8dd..08b99293b537016ee44d1a1841b98a4a9a0ae3c5 100644 (file)
@@ -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<dim, spacedim> *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());
 

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.