This is in response to an email on the mailing list that showed an error message that wasn't particularly helpful.
*/
DeclException2 (ExcInvalidVertexIndex,
int, int,
- << "Trying to access invalid vertex index " << arg2
- << " while creating cell " << arg1);
+ << "While creating cell " << arg1
+ << ", you are referencing a vertex with index " << arg2
+ << " but no vertex with this index has been described in the input file.");
/**
* Exception
*/
else
{
// no such vertex index
- AssertThrow (false, ExcInvalidVertexIndex(cell, cells.back().vertices[i]));
+ AssertThrow (false,
+ ExcInvalidVertexIndex(cell, cells.back().vertices[i]));
+
cells.back().vertices[i] = numbers::invalid_unsigned_int;
- };
+ }
}
else if ((cell_type == "line") && ((dim == 2) || (dim == 3)))
// boundary info
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