From b823dbeb1257d45dd94dd24fcca99942509c1118 Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 9 Feb 2007 05:44:15 +0000 Subject: [PATCH] update a few comments. git-svn-id: https://svn.dealii.org/trunk@14435 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/fe/fe.cc | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/deal.II/deal.II/source/fe/fe.cc b/deal.II/deal.II/source/fe/fe.cc index 6c6d792ae0..0f02e477a7 100644 --- a/deal.II/deal.II/source/fe/fe.cc +++ b/deal.II/deal.II/source/fe/fe.cc @@ -340,8 +340,11 @@ template unsigned int FiniteElement::adjust_quad_dof_index_for_face_orientation (const unsigned int) const { - // general template for 1D and 2D: not implemented - Assert (false, ExcNotImplemented()); + // general template for 1D and 2D: not + // implemented. in fact, the function + // shouldn't even be called unless we are + // in 3d, so throw an internal error + Assert (false, ExcInternalError()); return deal_II_numbers::invalid_unsigned_int; } @@ -351,6 +354,15 @@ template <> unsigned int FiniteElement<3>::adjust_quad_dof_index_for_face_orientation (const unsigned int index) const { + // adjust dofs on 3d faces if the face is + // flipped. note that we query a table that + // derived elements need to have set up + // front. the exception are discontinuous + // elements for which there should be no + // face dofs anyway (i.e. dofs_per_quad==0 + // in 3d), so we don't need the table, but + // the function should also not have been + // called Assert (indexdofs_per_quad, ExcIndexRange(index,0,this->dofs_per_quad)); Assert (adjust_quad_dof_index_for_face_orientation_table.size()==this->dofs_per_quad, ExcInternalError()); -- 2.39.5