]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid duplicated template instantiation
authorDaniel Arndt <arndtd@ornl.gov>
Sat, 3 Aug 2024 16:13:45 +0000 (12:13 -0400)
committerTimo Heister <timo.heister@gmail.com>
Thu, 8 Aug 2024 21:35:40 +0000 (17:35 -0400)
source/base/index_set.cc

index 7330f79cfe73ef3bd69b84123d2a0d72607be9b8..a636e830aa399a5b129ef43500382102acb9e321 100644 (file)
@@ -1213,37 +1213,49 @@ template IndexSet::IndexSet(
     types::signed_global_dof_index,
     LinearAlgebra::TpetraWrappers::TpetraTypes::NodeType<MemorySpace::Host>>>
     &);
+
+#      if defined(HAVE_TPETRA_INST_CUDA) || defined(HAVE_TPETRA_INST_HIP) || \
+        defined(HAVE_TPETRA_INST_SYCL)
 template IndexSet::IndexSet(
   const Teuchos::RCP<const Tpetra::Map<
     int,
     types::signed_global_dof_index,
     LinearAlgebra::TpetraWrappers::TpetraTypes::NodeType<MemorySpace::Default>>>
     &);
+#      endif
 
 template LinearAlgebra::TpetraWrappers::TpetraTypes::MapType<MemorySpace::Host>
 dealii::IndexSet::make_tpetra_map<
   LinearAlgebra::TpetraWrappers::TpetraTypes::NodeType<MemorySpace::Host>>(
-  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<MemorySpace::Default>>(
-  int,
+  const MPI_Comm,
   bool) const;
+#      endif
 
 template Teuchos::RCP<
   LinearAlgebra::TpetraWrappers::TpetraTypes::MapType<MemorySpace::Host>>
 dealii::IndexSet::make_tpetra_map_rcp<
   LinearAlgebra::TpetraWrappers::TpetraTypes::NodeType<MemorySpace::Host>>(
-  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<MemorySpace::Default>>
 dealii::IndexSet::make_tpetra_map_rcp<
   LinearAlgebra::TpetraWrappers::TpetraTypes::NodeType<MemorySpace::Default>>(
-  int,
+  const MPI_Comm,
   bool) const;
+#      endif
 
 #    endif
 #  endif

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.