Commit d5d09ccd authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Nondecomposed: Move variables to inner scope

parent e06e72c6
......@@ -130,9 +130,6 @@ public:
DUNE_THROW(RangeError, "Not implemented for dim = " << dim);
}
const double degradationValue = f_->degradation(jet);
FieldVector<RangeField, size> stresses(0.0);
// psi,{eps eps}
if (row==0 && col==0)
{
......@@ -143,12 +140,13 @@ public:
for (std::size_t i=0; i<size-1; ++i)
result[i][i] += 2.0*f_->mu_*II[i];
result *= degradationValue;
result *= f_->degradation(jet);
}
// psi,{eps d}
if (row==0 && col==1)
{
FieldVector<RangeField, size> stresses(0.0);
const double trEps = f_->traceEps(jet);
for (auto&& diagonal : diagonals())
......@@ -163,6 +161,7 @@ public:
if (row==1 && col==0)
{
FieldVector<RangeField, size> stresses(0.0);
const double trEps = f_->traceEps(jet);
for (auto&& diagonal : diagonals())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment