From: Wolfgang Bangerth Date: Fri, 8 Jul 2016 21:02:43 +0000 (-0500) Subject: Fix incorrect index check for cases of rank-4 symmetric tensors. X-Git-Tag: v8.5.0-rc1~896^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f41c3b677e2b62c08bb41cd0b982e2c794592a21;p=dealii.git Fix incorrect index check for cases of rank-4 symmetric tensors. --- diff --git a/include/deal.II/base/symmetric_tensor.h b/include/deal.II/base/symmetric_tensor.h index bac3523634..c4fa23fe41 100644 --- a/include/deal.II/base/symmetric_tensor.h +++ b/include/deal.II/base/symmetric_tensor.h @@ -1728,7 +1728,7 @@ inline Number SymmetricTensor::access_raw_entry (const unsigned int index) const { - AssertIndexRange (index, data.dimension); + AssertIndexRange (index, n_independent_components); return data[internal::SymmetricTensor::entry_to_indices(*this, index)]; } @@ -1739,7 +1739,7 @@ inline Number & SymmetricTensor::access_raw_entry (const unsigned int index) { - AssertIndexRange (index, data.dimension); + AssertIndexRange (index, n_independent_components); return data[internal::SymmetricTensor::entry_to_indices(*this, index)]; }