]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Work around an issue with the clang CUDA compiler. 16145/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 16 Oct 2023 23:37:33 +0000 (17:37 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 18 Oct 2023 23:13:50 +0000 (17:13 -0600)
include/deal.II/numerics/vector_tools_constraints.templates.h

index b5a2f681869c48a82914c9cfc7707fd4fb096c6e..9785674a98954cf0e2462405cfbf6408ff477c25 100644 (file)
@@ -242,15 +242,17 @@ namespace VectorTools
                                     constraining_vector[0]) >
                           std::numeric_limits<double>::epsilon())
                         constraint_entries.emplace_back(
-                          dof_indices.dof_indices[1],
-                          -constraining_vector[1] / constraining_vector[0]);
+                          std::make_pair(dof_indices.dof_indices[1],
+                                         -constraining_vector[1] /
+                                           constraining_vector[0]));
 
                       if (std::fabs(constraining_vector[2] /
                                     constraining_vector[0]) >
                           std::numeric_limits<double>::epsilon())
                         constraint_entries.emplace_back(
-                          dof_indices.dof_indices[2],
-                          -constraining_vector[2] / constraining_vector[0]);
+                          std::make_pair(dof_indices.dof_indices[2],
+                                         -constraining_vector[2] /
+                                           constraining_vector[0]));
 
                       const double normalized_inhomogeneity =
                         (std::fabs(inhomogeneity / constraining_vector[0]) >
@@ -275,15 +277,17 @@ namespace VectorTools
                                     constraining_vector[1]) >
                           std::numeric_limits<double>::epsilon())
                         constraint_entries.emplace_back(
-                          dof_indices.dof_indices[0],
-                          -constraining_vector[0] / constraining_vector[1]);
+                          std::make_pair(dof_indices.dof_indices[0],
+                                         -constraining_vector[0] /
+                                           constraining_vector[1]));
 
                       if (std::fabs(constraining_vector[2] /
                                     constraining_vector[1]) >
                           std::numeric_limits<double>::epsilon())
                         constraint_entries.emplace_back(
-                          dof_indices.dof_indices[2],
-                          -constraining_vector[2] / constraining_vector[1]);
+                          std::make_pair(dof_indices.dof_indices[2],
+                                         -constraining_vector[2] /
+                                           constraining_vector[1]));
 
                       const double normalized_inhomogeneity =
                         (std::fabs(inhomogeneity / constraining_vector[1]) >
@@ -305,15 +309,17 @@ namespace VectorTools
                                     constraining_vector[2]) >
                           std::numeric_limits<double>::epsilon())
                         constraint_entries.emplace_back(
-                          dof_indices.dof_indices[0],
-                          -constraining_vector[0] / constraining_vector[2]);
+                          std::make_pair(dof_indices.dof_indices[0],
+                                         -constraining_vector[0] /
+                                           constraining_vector[2]));
 
                       if (std::fabs(constraining_vector[1] /
                                     constraining_vector[2]) >
                           std::numeric_limits<double>::epsilon())
                         constraint_entries.emplace_back(
-                          dof_indices.dof_indices[1],
-                          -constraining_vector[1] / constraining_vector[2]);
+                          std::make_pair(dof_indices.dof_indices[1],
+                                         -constraining_vector[1] /
+                                           constraining_vector[2]));
 
                       const double normalized_inhomogeneity =
                         (std::fabs(inhomogeneity / constraining_vector[2]) >

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.