]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix clang warning in grid/grid_in.cc
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 10 Aug 2017 20:16:03 +0000 (22:16 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 10 Aug 2017 20:16:59 +0000 (22:16 +0200)
source/grid/grid_in.cc

index 7a12b1fe0ea91c087e32b072118f531f4cb83948..c8598cce4176bfc7ece8b9cab029a279da226197 100644 (file)
@@ -2076,7 +2076,9 @@ void GridIn<3>::read_netcdf (const std::string &filename)
   // take numbers::internal_face_boundary_id
   // as it denotes an internal face
   for (unsigned int i=0; i<bmarker.size(); ++i)
-    Assert(0<=bmarker[i] && bmarker[i]<numbers::internal_face_boundary_id, ExcIO());
+    Assert(0<=bmarker[i] &&
+           static_cast<types::boundary_id>(bmarker[i])<numbers::internal_face_boundary_id,
+           ExcIO());
 
   // finally we setup the boundary
   // information

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.