From 4885db6847bee1c451f9e13de22c0176a2b36f3f Mon Sep 17 00:00:00 2001 From: Lisa Julia Nebel <lisa_julia.nebel@tu-dresden.de> Date: Wed, 2 Sep 2020 16:56:02 +0200 Subject: [PATCH] Remove unused variable from globalmapper.hh and rename coarseGlobalDof_ to globalDof_ This array contains the global numbering for the degrees of freedom on the whole grid hierarchy, not only on the coarsest level. --- dune/gfe/parallel/globalmapper.hh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/dune/gfe/parallel/globalmapper.hh b/dune/gfe/parallel/globalmapper.hh index 554a70fd..4cf617dd 100644 --- a/dune/gfe/parallel/globalmapper.hh +++ b/dune/gfe/parallel/globalmapper.hh @@ -28,12 +28,11 @@ namespace Dune { Master m = Dune::ParMG::entityMasterRank(basis.gridView(), [&](int, int codim) -> bool { return dofmap.codimSet().test(codim); }); - DofMaster dofmaster = Dune::ParMG::dofMaster(basis, m); - coarseGlobalDof_ = globalDof(basis,m, dofmap); + globalDof_ = globalDof(basis,m, dofmap); // total number of degrees of freedom - size_ = coarseGlobalDof_.size; + size_ = globalDof_.size; } #else GlobalMapper(const Basis& basis) @@ -46,7 +45,7 @@ namespace Dune { /** \brief Given a local index, retrieve its index globally unique over all processes. */ Index index(const int& localIndex) const { #if HAVE_DUNE_PARMG - return coarseGlobalDof_.globalDof[localIndex]; + return globalDof_.globalDof[localIndex]; #else return localIndex; #endif @@ -58,7 +57,7 @@ namespace Dune { } #if HAVE_DUNE_PARMG - ParMG::GlobalDof coarseGlobalDof_; + ParMG::GlobalDof globalDof_; #endif std::size_t size_; -- GitLab