From: Wolfgang Bangerth Date: Tue, 23 Jun 2020 21:14:19 +0000 (-0600) Subject: Add an assertion. X-Git-Tag: v9.3.0-rc1~1388^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67fa6afba5fcb2478cb35530fd8964b9b3639c9a;p=dealii.git Add an assertion. --- diff --git a/source/grid/grid_in.cc b/source/grid/grid_in.cc index f47c7efe10..121f18783f 100644 --- a/source/grid/grid_in.cc +++ b/source/grid/grid_in.cc @@ -1971,8 +1971,10 @@ GridIn::read_msh(std::istream &in) unsigned int node_index = 0; if (gmsh_file_format < 20) { - for (unsigned int i = 0; i < nod_num; ++i) - in >> node_index; + // For points (cell_type==15), we can only ever + // list one node index. + AssertThrow(nod_num == 1, ExcInternalError()); + in >> node_index; } else {