From 5410a4736caaf1841d6011477a1e66e685fb5a2c Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Wed, 7 Jun 2023 08:22:25 -0400 Subject: [PATCH] Remove unused mpi_communicator pointer members initialized by temporaries --- examples/step-45/step-45.cc | 2 -- tests/mpi/muelu_periodicity.cc | 2 -- tests/mpi/periodicity_02.cc | 2 -- tests/mpi/periodicity_03.cc | 2 -- 4 files changed, 8 deletions(-) diff --git a/examples/step-45/step-45.cc b/examples/step-45/step-45.cc index fc8c544d93..c088736334 100644 --- a/examples/step-45/step-45.cc +++ b/examples/step-45/step-45.cc @@ -202,7 +202,6 @@ namespace Step45 const SmartPointer matrix; const SmartPointer preconditioner; - const MPI_Comm * mpi_communicator; mutable TrilinosWrappers::MPI::Vector tmp; }; @@ -216,7 +215,6 @@ namespace Step45 const MPI_Comm mpi_communicator) : matrix(&m) , preconditioner(&preconditioner) - , mpi_communicator(&mpi_communicator) , tmp(locally_owned, mpi_communicator) {} diff --git a/tests/mpi/muelu_periodicity.cc b/tests/mpi/muelu_periodicity.cc index 73771b32d0..86787975f0 100644 --- a/tests/mpi/muelu_periodicity.cc +++ b/tests/mpi/muelu_periodicity.cc @@ -197,7 +197,6 @@ namespace Step22 const SmartPointer matrix; const SmartPointer preconditioner; - const MPI_Comm * mpi_communicator; mutable TrilinosWrappers::MPI::Vector tmp; }; @@ -210,7 +209,6 @@ namespace Step22 const MPI_Comm mpi_communicator) : matrix(&m) , preconditioner(&preconditioner) - , mpi_communicator(&mpi_communicator) , tmp(locally_owned, mpi_communicator) {} diff --git a/tests/mpi/periodicity_02.cc b/tests/mpi/periodicity_02.cc index 03a4223e4c..44350cd49e 100644 --- a/tests/mpi/periodicity_02.cc +++ b/tests/mpi/periodicity_02.cc @@ -199,7 +199,6 @@ namespace Step22 const SmartPointer matrix; const SmartPointer preconditioner; - const MPI_Comm * mpi_communicator; mutable TrilinosWrappers::MPI::Vector tmp; }; @@ -212,7 +211,6 @@ namespace Step22 const MPI_Comm mpi_communicator) : matrix(&m) , preconditioner(&preconditioner) - , mpi_communicator(&mpi_communicator) , tmp(locally_owned, mpi_communicator) {} diff --git a/tests/mpi/periodicity_03.cc b/tests/mpi/periodicity_03.cc index eb1f55a1fc..4941c8c4cd 100644 --- a/tests/mpi/periodicity_03.cc +++ b/tests/mpi/periodicity_03.cc @@ -122,7 +122,6 @@ namespace Step22 const SmartPointer matrix; const SmartPointer preconditioner; - const MPI_Comm * mpi_communicator; mutable TrilinosWrappers::MPI::Vector tmp; }; @@ -135,7 +134,6 @@ namespace Step22 const MPI_Comm mpi_communicator) : matrix(&m) , preconditioner(&preconditioner) - , mpi_communicator(&mpi_communicator) , tmp(locally_owned, mpi_communicator) {} -- 2.39.5