From: wolf Date: Wed, 9 Jan 2002 07:25:31 +0000 (+0000) Subject: Fix writing to read-only variable. (Well, work-around of cxx bug.) X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=018a70b7f9fa08a90593990adb969c5498eef98a;p=dealii-svn.git 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 --- 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)