]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Address review suggestion 15720/head
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 13 Jul 2023 11:48:01 +0000 (07:48 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 13 Jul 2023 14:30:31 +0000 (10:30 -0400)
Co-authored-by: Wolfgang Bangerth <bangerth@colostate.edu>
source/arborx/access_traits.cc

index ac2bbf36f78e6ec77beff9bba87cc7d400e6be19..a9ea5b720b7e0022c76fee96d13115a0f8bf7787 100644 (file)
@@ -29,11 +29,11 @@ namespace ArborXWrappers
     {
       static_assert(dim >= 1 && dim <= 3);
       if (dim == 1)
-        return {float(p[0]), 0.f, 0.f};
+        return Point<3, float>(p[0], 0.f, 0.f);
       else if (dim == 2)
-        return {float(p[0]), float(p[1]), 0.f};
+        return Point<3, float>(p[0], p[1], 0.f);
       else
-        return {float(p[0]), float(p[1]), float(p[2])};
+        return Point<3, float>(p[0], p[1], p[2]);
     }
   } // namespace
 

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.