From: Wolfgang Bangerth Date: Tue, 13 Aug 2019 03:37:59 +0000 (-0600) Subject: Fix an assertion that was missing a semicolon. X-Git-Tag: v9.2.0-rc1~1247^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8560%2Fhead;p=dealii.git Fix an assertion that was missing a semicolon. --- diff --git a/source/grid/grid_in.cc b/source/grid/grid_in.cc index 6f5a04eedd..b8cdce11b1 100644 --- a/source/grid/grid_in.cc +++ b/source/grid/grid_in.cc @@ -3007,10 +3007,10 @@ GridIn::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),