]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix compiler warning in python-wrappers 7242/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 27 Sep 2018 21:05:32 +0000 (23:05 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 27 Sep 2018 21:05:32 +0000 (23:05 +0200)
contrib/python-bindings/source/cell_accessor_wrapper.cc

index a49fb638393e37f87e76d43d5216f23fd95a35b3..29f17f21058163be8010783f94f31e87641251e8 100644 (file)
@@ -15,9 +15,9 @@
 
 #include <cell_accessor_wrapper.h>
 
+#include <boost/python.hpp>
 #include <point_wrapper.h>
 #include <triangulation_wrapper.h>
-#include <boost/python.hpp>
 
 DEAL_II_NAMESPACE_OPEN
 
@@ -398,7 +398,7 @@ namespace python
 
   void CellAccessorWrapper::set_material_id(const int material_id)
   {
-    AssertThrow(static_cast<const types::material_id>(material_id) < numbers::invalid_material_id,
+    AssertThrow(static_cast<types::material_id>(material_id) < numbers::invalid_material_id,
                 ExcMessage("material_id is too large."));
     if ((dim == 2) && (spacedim == 2))
       return internal::set_material_id<2,2>(material_id, cell_accessor);

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.