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
No related branches found
No related tags found
1 merge request!73Rename deprecated getCollectiveCommunication()
Pipeline #51365 passed
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment