Skip to content
Snippets Groups Projects
Commit ee54179d authored by Patrick Jaap's avatar Patrick Jaap
Browse files

Merge branch 'resolve-depratation' into 'master'

Rename deprecated getCollectiveCommunication()

See merge request !73
parents aef47712 cf5b0eb0
Branches
No related tags found
1 merge request!73Rename deprecated getCollectiveCommunication()
Pipeline #51365 passed
...@@ -61,7 +61,7 @@ double LocalADOLCStiffness<LocalView>:: ...@@ -61,7 +61,7 @@ double LocalADOLCStiffness<LocalView>::
energy(const LocalView& localView, energy(const LocalView& localView,
const std::vector<double>& localConfiguration) const const std::vector<double>& localConfiguration) const
{ {
int rank = Dune::MPIHelper::getCollectiveCommunication().rank(); int rank = Dune::MPIHelper::getCommunication().rank();
double pureEnergy; double pureEnergy;
std::vector<adouble> localAConfiguration(localConfiguration.size()); std::vector<adouble> localAConfiguration(localConfiguration.size());
...@@ -96,7 +96,7 @@ assembleGradientAndHessian(const LocalView& localView, ...@@ -96,7 +96,7 @@ assembleGradientAndHessian(const LocalView& localView,
Dune::Matrix<double>& localHessian 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. // Tape energy computation. We may not have to do this every time, but it's comparatively cheap.
energy(localView, localConfiguration); energy(localView, localConfiguration);
...@@ -210,7 +210,7 @@ energy(const Entity& element, ...@@ -210,7 +210,7 @@ energy(const Entity& element,
const LocalFiniteElement& localFiniteElement, const LocalFiniteElement& localFiniteElement,
const VectorType& localSolution) const const VectorType& localSolution) const
{ {
int rank = Dune::MPIHelper::getCollectiveCommunication().rank(); int rank = Dune::MPIHelper::getCommunication().rank();
double pureEnergy; double pureEnergy;
std::vector<Dune::FieldVector<adouble,blocksize> > localASolution(localSolution.size()); std::vector<Dune::FieldVector<adouble,blocksize> > localASolution(localSolution.size());
...@@ -246,7 +246,7 @@ assembleGradientAndHessian(const Entity& element, ...@@ -246,7 +246,7 @@ assembleGradientAndHessian(const Entity& element,
const VectorType& localSolution, const VectorType& localSolution,
VectorType& localGradient) 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. // Tape energy computation. We may not have to do this every time, but it's comparatively cheap.
energy(element, localFiniteElement, localSolution); energy(element, localFiniteElement, localSolution);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment