From: Jan Philipp Thiele Date: Thu, 11 Jul 2024 13:54:16 +0000 (+0200) Subject: Fix Tpetra types for older Trilinos X-Git-Tag: v9.6.0-rc1~98^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa22bdfcc7d705ef03c036eba7a73f489c6813ad;p=dealii.git Fix Tpetra types for older Trilinos --- 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