]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix Intel 18 warnings in OpenCASCADE wrapper 5673/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 23 Dec 2017 17:24:19 +0000 (18:24 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 24 Dec 2017 10:49:52 +0000 (11:49 +0100)
source/opencascade/utilities.cc
source/opencascade/utilities.inst.in

index bd83e5f57104cba9db01374581463f1900364e4b..300d2ee6651345a2fcf833416350bd9356f07c03 100644 (file)
@@ -177,6 +177,8 @@ namespace OpenCASCADE
       case 3:
         return gp_Pnt(p[0], p[1], p[2]);
       }
+    AssertThrow (false, ExcNotImplemented());
+    return {};
   }
 
   template <int spacedim>
@@ -198,6 +200,8 @@ namespace OpenCASCADE
       case 3:
         return Point<spacedim>(p.X(), p.Y(), p.Z());
       }
+    AssertThrow (false, ExcNotImplemented());
+    return {};
   }
 
   template<int dim>
index 7fae0b9abf32cf51ee3930231a6598f71b3f4284..c3a45cce05fc4ea15d790b133047a4c14a24d87f 100644 (file)
@@ -33,7 +33,7 @@ for (deal_II_dimension : DIMENSIONS)
 
     template
     TopoDS_Edge interpolation_curve(std::vector<Point<deal_II_dimension> >& curve_points,
-                                    const Tensor<1, deal_II_dimension>& direction=Tensor<1,deal_II_dimension>(),
+                                    const Tensor<1, deal_II_dimension>& direction,
                                     const bool closed,
                                     const double tolerance);
 

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.