From 018a70b7f9fa08a90593990adb969c5498eef98a Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 9 Jan 2002 07:25:31 +0000 Subject: [PATCH] Fix writing to read-only variable. (Well, work-around of cxx bug.) git-svn-id: https://svn.dealii.org/trunk@5361 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/fe/fe_q.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/deal.II/deal.II/source/fe/fe_q.cc b/deal.II/deal.II/source/fe/fe_q.cc index dac5be02ae..636bed5422 100644 --- a/deal.II/deal.II/source/fe/fe_q.cc +++ b/deal.II/deal.II/source/fe/fe_q.cc @@ -1212,9 +1212,11 @@ FE_Q::base_element (const unsigned int index) const template bool -FE_Q::has_support_on_face (unsigned int shape_index, - const unsigned int face_index) const +FE_Q::has_support_on_face (const unsigned int shape_index_, + const unsigned int face_index) const { + unsigned int shape_index = shape_index_; + if (dim==1) return true; const unsigned int cell_start = (dim==2) -- 2.39.5