From 15fe5219508d52e733e1100066a1d54f099d80be Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 1 Sep 2018 22:34:35 -0400 Subject: [PATCH] Add some consistency checks to a function. --- source/distributed/shared_tria.cc | 5 +++++ 1 file changed, 5 insertions(+) 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]; } -- 2.39.5