Skip to content

Commit

Permalink
Merge pull request #15324 from masterleinad/remove_unused_mpi_communi…
Browse files Browse the repository at this point in the history
…cator_ptr

Remove unused mpi_communicator pointer members initialized by temporaries
  • Loading branch information
marcfehling committed Jun 7, 2023
2 parents ea23d6b + 5410a47 commit 5e293df
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions examples/step-45/step-45.cc
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ namespace Step45
const SmartPointer<const MatrixType> matrix;
const SmartPointer<const PreconditionerType> preconditioner;

const MPI_Comm * mpi_communicator;
mutable TrilinosWrappers::MPI::Vector tmp;
};

Expand All @@ -216,7 +215,6 @@ namespace Step45
const MPI_Comm mpi_communicator)
: matrix(&m)
, preconditioner(&preconditioner)
, mpi_communicator(&mpi_communicator)
, tmp(locally_owned, mpi_communicator)
{}

Expand Down
2 changes: 0 additions & 2 deletions tests/mpi/muelu_periodicity.cc
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ namespace Step22
const SmartPointer<const Matrix> matrix;
const SmartPointer<const Preconditioner> preconditioner;

const MPI_Comm * mpi_communicator;
mutable TrilinosWrappers::MPI::Vector tmp;
};

Expand All @@ -210,7 +209,6 @@ namespace Step22
const MPI_Comm mpi_communicator)
: matrix(&m)
, preconditioner(&preconditioner)
, mpi_communicator(&mpi_communicator)
, tmp(locally_owned, mpi_communicator)
{}

Expand Down
2 changes: 0 additions & 2 deletions tests/mpi/periodicity_02.cc
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ namespace Step22
const SmartPointer<const Matrix> matrix;
const SmartPointer<const Preconditioner> preconditioner;

const MPI_Comm * mpi_communicator;
mutable TrilinosWrappers::MPI::Vector tmp;
};

Expand All @@ -212,7 +211,6 @@ namespace Step22
const MPI_Comm mpi_communicator)
: matrix(&m)
, preconditioner(&preconditioner)
, mpi_communicator(&mpi_communicator)
, tmp(locally_owned, mpi_communicator)
{}

Expand Down
2 changes: 0 additions & 2 deletions tests/mpi/periodicity_03.cc
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ namespace Step22
const SmartPointer<const Matrix> matrix;
const SmartPointer<const Preconditioner> preconditioner;

const MPI_Comm * mpi_communicator;
mutable TrilinosWrappers::MPI::Vector tmp;
};

Expand All @@ -135,7 +134,6 @@ namespace Step22
const MPI_Comm mpi_communicator)
: matrix(&m)
, preconditioner(&preconditioner)
, mpi_communicator(&mpi_communicator)
, tmp(locally_owned, mpi_communicator)
{}

Expand Down

0 comments on commit 5e293df

Please sign in to comment.