]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix an assertion that was missing a semicolon. 8560/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 13 Aug 2019 03:37:59 +0000 (21:37 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 13 Aug 2019 14:10:20 +0000 (08:10 -0600)
source/grid/grid_in.cc

index 6f5a04eeddb8c2e11409a8a8e88ec5335dbb907c..b8cdce11b145392359c5e2e2faab8ce517b95692 100644 (file)
@@ -3007,10 +3007,10 @@ GridIn<dim, spacedim>::read_assimp(const std::string &filename,
                         aiProcess_OptimizeGraph | aiProcess_OptimizeMeshes);
 
   // If the import failed, report it
-  AssertThrow(scene, ExcMessage(importer.GetErrorString()))
+  AssertThrow(scene != nullptr, ExcMessage(importer.GetErrorString()));
 
-    AssertThrow(scene->mNumMeshes,
-                ExcMessage("Input file contains no meshes."));
+  AssertThrow(scene->mNumMeshes != 0,
+              ExcMessage("Input file contains no meshes."));
 
   AssertThrow((mesh_index == numbers::invalid_unsigned_int) ||
                 (mesh_index < scene->mNumMeshes),

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.