From: bangerth Date: Fri, 9 Aug 2013 10:05:07 +0000 (+0000) Subject: Guard new assertion with a test for standard orientation. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1962c05a879c7744e1de55e9d1be2237204b39b9;p=dealii-svn.git Guard new assertion with a test for standard orientation. git-svn-id: https://svn.dealii.org/trunk@30261 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/fe/fe_data.cc b/deal.II/source/fe/fe_data.cc index 1a0f0b02b8..3fec91c5a9 100644 --- a/deal.II/source/fe/fe_data.cc +++ b/deal.II/source/fe/fe_data.cc @@ -115,12 +115,14 @@ face_to_cell_index (const unsigned int face_index, // see the function's documentation for an explanation of this // assertion -- in essence, derived classes have to implement - // an overloaded version of this function - Assert ((this->dofs_per_line <= 1) && (this->dofs_per_quad <= 1), - ExcMessage ("The function in this base class can not handle this case. " - "Rather, the derived class you are using must provide " - "an overloaded version but apparently hasn't done so. See " - "the documentation of this function for more information.")); + // an overloaded version of this function if we are to use any + // other than standard orientation + if ((face_orientation != true) || (face_flip != false) || (face_rotation != false)) + Assert ((this->dofs_per_line <= 1) && (this->dofs_per_quad <= 1), + ExcMessage ("The function in this base class can not handle this case. " + "Rather, the derived class you are using must provide " + "an overloaded version but apparently hasn't done so. See " + "the documentation of this function for more information.")); // DoF on a vertex if (face_index < this->first_face_line_index)