From fa22bdfcc7d705ef03c036eba7a73f489c6813ad Mon Sep 17 00:00:00 2001 From: Jan Philipp Thiele Date: Thu, 11 Jul 2024 15:54:16 +0200 Subject: [PATCH] Fix Tpetra types for older Trilinos --- .../lac/trilinos_tpetra_sparse_matrix.templates.h | 4 ++-- source/lac/trilinos_tpetra_sparsity_pattern.cc | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/deal.II/lac/trilinos_tpetra_sparse_matrix.templates.h b/include/deal.II/lac/trilinos_tpetra_sparse_matrix.templates.h index be980905b2..560b3b98b3 100644 --- a/include/deal.II/lac/trilinos_tpetra_sparse_matrix.templates.h +++ b/include/deal.II/lac/trilinos_tpetra_sparse_matrix.templates.h @@ -1315,8 +1315,8 @@ namespace LinearAlgebra TpetraTypes::MatrixType>(*source.matrix, Teuchos::Copy); # else - matrix = source.matrix->clone( - Utilities::Trilinos::internal::make_rcp()); + matrix = source.matrix->clone(Utilities::Trilinos::internal::make_rcp< + TpetraTypes::NodeType>()); # endif column_space_map = Teuchos::rcp_const_cast>( diff --git a/source/lac/trilinos_tpetra_sparsity_pattern.cc b/source/lac/trilinos_tpetra_sparsity_pattern.cc index 91ccd3234a..0337c3e65b 100644 --- a/source/lac/trilinos_tpetra_sparsity_pattern.cc +++ b/source/lac/trilinos_tpetra_sparsity_pattern.cc @@ -420,13 +420,13 @@ namespace LinearAlgebra n_entries_per_row); # else if (row_map->getComm()->getSize() > 1) - graph = - Utilities::Trilinos::internal::make_rcp>( - row_map, Teuchos::arcpFromArray(n_entries_per_row)); + graph = Utilities::Trilinos::internal::make_rcp< + TpetraTypes::GraphType>( + row_map, Teuchos::arcpFromArray(n_entries_per_row)); else - graph = - Utilities::Trilinos::internal::make_rcp>( - row_map, col_map, Teuchos::arcpFromArray(n_entries_per_row)); + graph = Utilities::Trilinos::internal::make_rcp< + TpetraTypes::GraphType>( + row_map, col_map, Teuchos::arcpFromArray(n_entries_per_row)); # endif -- 2.39.5