From cf5b0eb095359b761e2fd5921d535f4fe805a1fc Mon Sep 17 00:00:00 2001
From: Patrick Jaap <patrick.jaap@tu-dresden.de>
Date: Tue, 16 Aug 2022 11:13:48 +0200
Subject: [PATCH] Rename deprecated getCollectiveCommunication()

See https://gitlab.dune-project.org/core/dune-common/-/merge_requests/1091
---
 dune/elasticity/assemblers/localadolcstiffness.hh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dune/elasticity/assemblers/localadolcstiffness.hh b/dune/elasticity/assemblers/localadolcstiffness.hh
index f062686..c00fbb7 100644
--- a/dune/elasticity/assemblers/localadolcstiffness.hh
+++ b/dune/elasticity/assemblers/localadolcstiffness.hh
@@ -61,7 +61,7 @@ double LocalADOLCStiffness<LocalView>::
 energy(const LocalView& localView,
        const std::vector<double>& localConfiguration) const
 {
-    int rank = Dune::MPIHelper::getCollectiveCommunication().rank();
+    int rank = Dune::MPIHelper::getCommunication().rank();
     double pureEnergy;
 
     std::vector<adouble> localAConfiguration(localConfiguration.size());
@@ -96,7 +96,7 @@ assembleGradientAndHessian(const LocalView& localView,
                            Dune::Matrix<double>& localHessian
                           )
 {
-    int rank = Dune::MPIHelper::getCollectiveCommunication().rank();
+    int rank = Dune::MPIHelper::getCommunication().rank();
     // Tape energy computation.  We may not have to do this every time, but it's comparatively cheap.
     energy(localView, localConfiguration);
 
@@ -210,7 +210,7 @@ energy(const Entity& element,
        const LocalFiniteElement& localFiniteElement,
        const VectorType& localSolution) const
 {
-    int rank = Dune::MPIHelper::getCollectiveCommunication().rank();
+    int rank = Dune::MPIHelper::getCommunication().rank();
     double pureEnergy;
 
     std::vector<Dune::FieldVector<adouble,blocksize> > localASolution(localSolution.size());
@@ -246,7 +246,7 @@ assembleGradientAndHessian(const Entity& element,
                 const VectorType& localSolution,
                 VectorType& localGradient)
 {
-    int rank = Dune::MPIHelper::getCollectiveCommunication().rank();
+    int rank = Dune::MPIHelper::getCommunication().rank();
     // Tape energy computation.  We may not have to do this every time, but it's comparatively cheap.
     energy(element, localFiniteElement, localSolution);
 
-- 
GitLab