]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid some warnings in python-bindings 9150/head
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 6 Dec 2019 23:16:59 +0000 (18:16 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 6 Dec 2019 23:16:59 +0000 (18:16 -0500)
contrib/python-bindings/source/triangulation_wrapper.cc

index d029380b1e505dc40c2f09955074f05866b0f1f3..1123f7e42b0bc0e37c3ed3e3e532a369e8c5bea0 100644 (file)
@@ -554,13 +554,15 @@ namespace python
 
       tria->clear();
 
-      typename GridIn<dim, spacedim>::Format input_format;
+      typename GridIn<dim, spacedim>::Format input_format =
+        GridIn<dim, spacedim>::Format::Default;
       if (format.compare("msh") == 0)
         input_format = GridIn<dim, spacedim>::Format::msh;
       else if (format.compare("vtk") == 0)
         input_format = GridIn<dim, spacedim>::Format::vtk;
       else
-        ExcMessage("Cannot read triangulation of the given format.");
+        Assert(false,
+               ExcMessage("Cannot read triangulation of the given format."));
 
       GridIn<dim, spacedim> mesh_reader;
       mesh_reader.attach_triangulation(*tria);

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.