From: Peter Munch Date: Mon, 27 Jul 2020 12:14:06 +0000 (+0200) Subject: Add assert to connectivity.h X-Git-Tag: v9.3.0-rc1~1247^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71738fff0bbe61e69fd6b5c245b9f3b5b5a74bf8;p=dealii.git Add assert to connectivity.h --- diff --git a/include/deal.II/grid/connectivity.h b/include/deal.II/grid/connectivity.h index 0031386b45..747450b7c1 100644 --- a/include/deal.II/grid/connectivity.h +++ b/include/deal.II/grid/connectivity.h @@ -1545,6 +1545,8 @@ namespace internal Connectivity build_connectivity(const std::vector> &cells) { + AssertThrow(cells.size() > 0, ExcMessage("No cells have been provided!")); + // vector of possible cell entity types std::vector> cell_types_impl(8);