From 7bf914a94fa547ab60f5b0af7b4030424edebbfb Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 9 Aug 2013 10:05:07 +0000 Subject: [PATCH] Guard new assertion with a test for standard orientation. git-svn-id: https://svn.dealii.org/trunk@30261 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/fe/fe_data.cc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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) -- 2.39.5