diff --git a/dune/elasticity/assemblers/localadolcstiffness.hh b/dune/elasticity/assemblers/localadolcstiffness.hh index f0626869d5026a4be80320e65e99149f288a89e7..c00fbb7458ead51324d7473ee44edc48b3330278 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);