Skip to content

Commit

Permalink
Merge pull request #16011 from sebproell/trilinos-precondition-copy
Browse files Browse the repository at this point in the history
Fix TrilinosWrappers::PreconditionBase special member functions
  • Loading branch information
kronbichler committed Sep 20, 2023
2 parents 6091815 + da71390 commit 46f530f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
16 changes: 0 additions & 16 deletions include/deal.II/lac/trilinos_precondition.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,6 @@ namespace TrilinosWrappers
*/
PreconditionBase();

/**
* Copy constructor.
*/
PreconditionBase(const PreconditionBase &);

/**
* Destructor.
*/
~PreconditionBase() override = default;

/**
* Destroys the preconditioner, leaving an object like just after having
* called the constructor.
Expand Down Expand Up @@ -237,12 +227,6 @@ namespace TrilinosWrappers
* from deal.II format.
*/
Epetra_MpiComm communicator;

/**
* Internal Trilinos map in case the matrix needs to be copied from
* deal.II format.
*/
std::shared_ptr<Epetra_Map> vector_distributor;
};


Expand Down
11 changes: 0 additions & 11 deletions source/lac/trilinos_precondition.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,11 @@ namespace TrilinosWrappers
{}



PreconditionBase::PreconditionBase(const PreconditionBase &base)
: Subscriptor()
, preconditioner(base.preconditioner)
, communicator(base.communicator)
, vector_distributor(new Epetra_Map(*base.vector_distributor))
{}



void
PreconditionBase::clear()
{
preconditioner.reset();
communicator = MPI_COMM_SELF;
vector_distributor.reset();
}


Expand Down

0 comments on commit 46f530f

Please sign in to comment.