Skip to content

Commit

Permalink
Make LA::TpetraWrappers::SparseMatrix::copy_from compatible with olde…
Browse files Browse the repository at this point in the history
…r Trilinos versions.
  • Loading branch information
Sebastian Kinnewig committed Feb 19, 2024
1 parent 2f6889d commit a39cfe9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/deal.II/lac/trilinos_tpetra_sparse_matrix.templates.h
Original file line number Diff line number Diff line change
Expand Up @@ -1022,9 +1022,13 @@ namespace LinearAlgebra
// not need to perform a deep copy.

// Perform a deep copy
# if DEAL_II_TRILINOS_VERSION_GTE(12, 18, 1)
matrix =
Utilities::Trilinos::internal::make_rcp<MatrixType>(*source.matrix,
Teuchos::Copy);
# else
matrix = source.matrix->clone(Utilities::Trilinos::internal::make_rcp<NodeType>());
# endif
column_space_map = Teuchos::rcp_const_cast<MapType>(matrix->getColMap());
compressed = source.compressed;
}
Expand Down

0 comments on commit a39cfe9

Please sign in to comment.