]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix tests 7463/head
authorAuthor: Daniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 26 Nov 2018 14:09:20 +0000 (14:09 +0000)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Mon, 26 Nov 2018 14:40:15 +0000 (14:40 +0000)
include/deal.II/matrix_free/cuda_matrix_free.h
include/deal.II/matrix_free/cuda_matrix_free.templates.h

index 75af6c004ef23c6c7ffe78af41c923ab192fb243..a8932d9b327a7ae35b69a8d6538b4abcffeb4bea 100644 (file)
@@ -252,12 +252,12 @@ namespace CUDAWrappers
      * Initializes the data structures.
      */
     void
-    reinit(const Mapping<dim> &             mapping,
-           const DoFHandler<dim> &          dof_handler,
-           const AffineConstraints<Number> &constraints,
-           const Quadrature<1> &            quad,
-           std::shared_ptr<const MPI_Comm>  comm,
-           const AdditionalData             additional_data);
+    internal_reinit(const Mapping<dim> &             mapping,
+                    const DoFHandler<dim> &          dof_handler,
+                    const AffineConstraints<Number> &constraints,
+                    const Quadrature<1> &            quad,
+                    std::shared_ptr<const MPI_Comm>  comm,
+                    const AdditionalData             additional_data);
 
     /**
      * Helper function. Loop over all the cells and apply the functor on each
index 89625a885cd5e5b5019bdeb29b63e5049ff51951..9e8c5e35f56891cbb0f6e14facfa84cfae473fe5 100644 (file)
@@ -520,12 +520,12 @@ namespace CUDAWrappers
                                   const MPI_Comm &                 comm,
                                   const AdditionalData additional_data)
   {
-    reinit(mapping,
-           dof_handler,
-           constraints,
-           quad,
-           std::make_shared<const MPI_Comm>(comm),
-           additional_data);
+    internal_reinit(mapping,
+                    dof_handler,
+                    constraints,
+                    quad,
+                    std::make_shared<const MPI_Comm>(comm),
+                    additional_data);
   }
 
 
@@ -538,12 +538,12 @@ namespace CUDAWrappers
                                   const MPI_Comm &                 comm,
                                   const AdditionalData additional_data)
   {
-    reinit(StaticMappingQ1<dim>::mapping,
-           dof_handler,
-           constraints,
-           quad,
-           std::make_shared<const MPI_Comm>(comm),
-           additional_data);
+    internal_reinit(StaticMappingQ1<dim>::mapping,
+                    dof_handler,
+                    constraints,
+                    quad,
+                    std::make_shared<const MPI_Comm>(comm),
+                    additional_data);
   }
 
 
@@ -556,7 +556,8 @@ namespace CUDAWrappers
                                   const Quadrature<1> &            quad,
                                   const AdditionalData additional_data)
   {
-    reinit(mapping, dof_handler, constraints, quad, nullptr, additional_data);
+    internal_reinit(
+      mapping, dof_handler, constraints, quad, nullptr, additional_data);
   }
 
 
@@ -568,12 +569,12 @@ namespace CUDAWrappers
                                   const Quadrature<1> &            quad,
                                   const AdditionalData additional_data)
   {
-    reinit(StaticMappingQ1<dim>::mapping,
-           dof_handler,
-           constraints,
-           quad,
-           nullptr,
-           additional_data);
+    internal_reinit(StaticMappingQ1<dim>::mapping,
+                    dof_handler,
+                    constraints,
+                    quad,
+                    nullptr,
+                    additional_data);
   }
 
 
@@ -753,12 +754,13 @@ namespace CUDAWrappers
 
   template <int dim, typename Number>
   void
-  MatrixFree<dim, Number>::reinit(const Mapping<dim> &             mapping,
-                                  const DoFHandler<dim> &          dof_handler,
-                                  const AffineConstraints<Number> &constraints,
-                                  const Quadrature<1> &            quad,
-                                  std::shared_ptr<const MPI_Comm>  comm,
-                                  const AdditionalData additional_data)
+  MatrixFree<dim, Number>::internal_reinit(
+    const Mapping<dim> &             mapping,
+    const DoFHandler<dim> &          dof_handler,
+    const AffineConstraints<Number> &constraints,
+    const Quadrature<1> &            quad,
+    std::shared_ptr<const MPI_Comm>  comm,
+    const AdditionalData             additional_data)
   {
     if (typeid(Number) == typeid(double))
       cudaDeviceSetSharedMemConfig(cudaSharedMemBankSizeEightByte);

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.