From: wolf Date: Tue, 17 Sep 2002 16:05:55 +0000 (+0000) Subject: Add an assertion that promptly triggers, and remove the underlying bug. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abcc02dba481eb3198107620d51f708a16233fdd;p=dealii-svn.git Add an assertion that promptly triggers, and remove the underlying bug. git-svn-id: https://svn.dealii.org/trunk@6441 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/fe/fe_system.cc b/deal.II/deal.II/source/fe/fe_system.cc index 006eeb9699..348b3332a0 100644 --- a/deal.II/deal.II/source/fe/fe_system.cc +++ b/deal.II/deal.II/source/fe/fe_system.cc @@ -1397,18 +1397,26 @@ void FESystem::build_interface_constraints () } else // on one of the four sub-quads - { + { // for the // meaning of all // this, see the // 2d part const unsigned int index_in_quad - = (m-5*this->dofs_per_vertex-12*this->dofs_per_line) % this->dofs_per_line; + = (m-5*this->dofs_per_vertex-12*this->dofs_per_line) % + this->dofs_per_quad; + Assert (index_in_quad < this->dofs_per_quad, + ExcInternalError()); const unsigned int sub_quad - = (m-5*this->dofs_per_vertex-12*this->dofs_per_line) / this->dofs_per_line; + = ((m-5*this->dofs_per_vertex-12*this->dofs_per_line) / + this->dofs_per_quad); Assert (sub_quad < 4, ExcInternalError()); - const unsigned int tmp1 = 4*this->dofs_per_vertex+4*this->dofs_per_line+index_in_quad; + const unsigned int tmp1 = 4*this->dofs_per_vertex + + 4*this->dofs_per_line + + index_in_quad; + Assert (tmp1 < this->face_system_to_base_table.size(), + ExcInternalError()); m_index.first = this->face_system_to_base_table[tmp1].first; Assert (this->face_system_to_base_table[tmp1].second >=