diff --git a/dune/tectonic/data-structures/friction/localfriction.hh b/dune/tectonic/data-structures/friction/localfriction.hh index e6014373868e7186603e2cdc8318a41f09e33df2..8008b40f56069a5ec2e47792c036d48c9a5350e6 100644 --- a/dune/tectonic/data-structures/friction/localfriction.hh +++ b/dune/tectonic/data-structures/friction/localfriction.hh @@ -150,16 +150,16 @@ class WrappedScalarFriction : public LocalFriction<dimension> { double const tensorweight = (H2 - H1 / xnorm); double const idweight = H1 / xnorm; - //std::cout << tensorweight << " " << idweight << std::endl; + //std::cout << "weights: " << tensorweight << " " << idweight << std::endl; - for (size_t i = 0; i < dimension; ++i) - for (size_t j = 0; j < i; ++j) { + for (size_t i = 1; i < dimension; ++i) + for (size_t j = 1; j < i; ++j) { double const entry = tensorweight * y[i] * y[j]; A[i][j] += entry; A[j][i] += entry; } - for (size_t k = 0; k < dimension; ++k) { + for (size_t k = 1; k < dimension; ++k) { double const entry = tensorweight * y[k] * y[k]; A[k][k] += entry + idweight; }