]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Give make_tpetra_map a default argument
authorDaniel Arndt <arndtd@ornl.gov>
Sat, 3 Aug 2024 20:17:30 +0000 (16:17 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Sat, 3 Aug 2024 20:18:55 +0000 (16:18 -0400)
include/deal.II/base/index_set.h

index d444b113564cfeb7f5d19a16c35f36008d0c14b0..1ed786270cff62823cde65bc003bd16c283bc955 100644 (file)
 #include <deal.II/base/config.h>
 
 #include <deal.II/base/exceptions.h>
+#include <deal.II/base/memory_space.h>
 #include <deal.II/base/mpi_stub.h>
 #include <deal.II/base/mutex.h>
 #include <deal.II/base/trilinos_utilities.h>
 
+#include <deal.II/lac/trilinos_tpetra_types.h>
+
 #include <boost/container/small_vector.hpp>
 
 #include <algorithm>
@@ -609,12 +612,16 @@ public:
                     const bool     overlapping  = false) const;
 
 #  ifdef DEAL_II_TRILINOS_WITH_TPETRA
-  template <typename NodeType>
+  template <
+    typename NodeType =
+      LinearAlgebra::TpetraWrappers::TpetraTypes::NodeType<MemorySpace::Host>>
   Tpetra::Map<int, types::signed_global_dof_index, NodeType>
   make_tpetra_map(const MPI_Comm communicator = MPI_COMM_WORLD,
                   const bool     overlapping  = false) const;
 
-  template <typename NodeType>
+  template <
+    typename NodeType =
+      LinearAlgebra::TpetraWrappers::TpetraTypes::NodeType<MemorySpace::Host>>
   Teuchos::RCP<Tpetra::Map<int, types::signed_global_dof_index, NodeType>>
   make_tpetra_map_rcp(const MPI_Comm communicator = MPI_COMM_WORLD,
                       const bool     overlapping  = false) const;

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.