Skip to content
Snippets Groups Projects
Commit cbed2823 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Clearer

parent d429e225
No related branches found
No related tags found
No related merge requests found
...@@ -39,6 +39,7 @@ template <int dim> class EllipticEnergy { ...@@ -39,6 +39,7 @@ template <int dim> class EllipticEnergy {
// If there is a direction of descent, this is it // If there is a direction of descent, this is it
SmallVector d; SmallVector d;
smoothGradient(x, d); smoothGradient(x, d);
d *= -1;
Interval<double> D; Interval<double> D;
phi->directionalSubDiff(x, d, D); phi->directionalSubDiff(x, d, D);
...@@ -48,7 +49,6 @@ template <int dim> class EllipticEnergy { ...@@ -48,7 +49,6 @@ template <int dim> class EllipticEnergy {
if (combinedDecline < 0) { if (combinedDecline < 0) {
ret = d; ret = d;
ret *= -1;
} else { } else {
ret = 0; ret = 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment