From: Daniel Arndt Date: Thu, 27 Sep 2018 21:05:32 +0000 (+0200) Subject: Fix compiler warning in python-wrappers X-Git-Tag: v9.1.0-rc1~680^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=652d4d0192fd71c2a80c355fba1dda4b3140381d;p=dealii.git Fix compiler warning in python-wrappers --- diff --git a/contrib/python-bindings/source/cell_accessor_wrapper.cc b/contrib/python-bindings/source/cell_accessor_wrapper.cc index a49fb63839..29f17f2105 100644 --- a/contrib/python-bindings/source/cell_accessor_wrapper.cc +++ b/contrib/python-bindings/source/cell_accessor_wrapper.cc @@ -15,9 +15,9 @@ #include +#include #include #include -#include DEAL_II_NAMESPACE_OPEN @@ -398,7 +398,7 @@ namespace python void CellAccessorWrapper::set_material_id(const int material_id) { - AssertThrow(static_cast(material_id) < numbers::invalid_material_id, + AssertThrow(static_cast(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);