From: David Wells Date: Sun, 2 Sep 2018 02:34:35 +0000 (-0400) Subject: Add some consistency checks to a function. X-Git-Tag: v9.1.0-rc1~733^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7165%2Fhead;p=dealii.git Add some consistency checks to a function. --- diff --git a/source/distributed/shared_tria.cc b/source/distributed/shared_tria.cc index eab717bdd8..154ebb865b 100644 --- a/source/distributed/shared_tria.cc +++ b/source/distributed/shared_tria.cc @@ -333,6 +333,11 @@ namespace parallel Triangulation::get_true_level_subdomain_ids_of_cells( const unsigned int level) const { + Assert(level < true_level_subdomain_ids_of_cells.size(), + ExcInternalError()); + Assert(true_level_subdomain_ids_of_cells[level].size() == + this->n_cells(level), + ExcInternalError()); return true_level_subdomain_ids_of_cells[level]; }