From: Daniel Arndt Date: Sat, 3 Aug 2024 16:13:45 +0000 (-0400) Subject: Avoid duplicated template instantiation X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e89cb456036c0956cff5bfe57dfb82977ce82aed;p=dealii.git Avoid duplicated template instantiation --- diff --git a/source/base/index_set.cc b/source/base/index_set.cc index 7330f79cfe..a636e830aa 100644 --- a/source/base/index_set.cc +++ b/source/base/index_set.cc @@ -1213,37 +1213,49 @@ template IndexSet::IndexSet( types::signed_global_dof_index, LinearAlgebra::TpetraWrappers::TpetraTypes::NodeType>> &); + +# if defined(HAVE_TPETRA_INST_CUDA) || defined(HAVE_TPETRA_INST_HIP) || \ + defined(HAVE_TPETRA_INST_SYCL) template IndexSet::IndexSet( const Teuchos::RCP>> &); +# endif template LinearAlgebra::TpetraWrappers::TpetraTypes::MapType dealii::IndexSet::make_tpetra_map< LinearAlgebra::TpetraWrappers::TpetraTypes::NodeType>( - int, + const MPI_Comm, bool) const; + +# if defined(HAVE_TPETRA_INST_CUDA) || defined(HAVE_TPETRA_INST_HIP) || \ + defined(HAVE_TPETRA_INST_SYCL) template LinearAlgebra::TpetraWrappers::TpetraTypes::MapType< MemorySpace::Default> dealii::IndexSet::make_tpetra_map< LinearAlgebra::TpetraWrappers::TpetraTypes::NodeType>( - int, + const MPI_Comm, bool) const; +# endif template Teuchos::RCP< LinearAlgebra::TpetraWrappers::TpetraTypes::MapType> dealii::IndexSet::make_tpetra_map_rcp< LinearAlgebra::TpetraWrappers::TpetraTypes::NodeType>( - int, + const MPI_Comm, bool) const; + +# if defined(HAVE_TPETRA_INST_CUDA) || defined(HAVE_TPETRA_INST_HIP) || \ + defined(HAVE_TPETRA_INST_SYCL) template Teuchos::RCP< LinearAlgebra::TpetraWrappers::TpetraTypes::MapType> dealii::IndexSet::make_tpetra_map_rcp< LinearAlgebra::TpetraWrappers::TpetraTypes::NodeType>( - int, + const MPI_Comm, bool) const; +# endif # endif # endif