From: Daniel Arndt Date: Sat, 3 Aug 2024 16:13:45 +0000 (-0400) Subject: Avoid duplicated template instantiation X-Git-Tag: v9.6.0~1^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be647e4dffbb553bdbdbbbb54d187027fba87f2d;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