diff --git a/dune/elasticity/zienkiewiczzhuestimator.hh b/dune/elasticity/zienkiewiczzhuestimator.hh index edb033587ebaddf65cae2d04076099f17871c911..f657558d1a1dec57fb448302be2119a51682a2df 100644 --- a/dune/elasticity/zienkiewiczzhuestimator.hh +++ b/dune/elasticity/zienkiewiczzhuestimator.hh @@ -165,7 +165,7 @@ public: int globalRow = indexSet.subIndex(*eIt,row,dim); - for (int rcomp=0; rcomp<SymmetricTensor<dim>::size; rcomp++) { + for (int rcomp=0; rcomp<p0Stress.size(); rcomp++) { unscaledP1Stress[globalRow][rcomp] += p0Stress[rcomp]*values[row] * factor;