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

Cleanup

parent c32fa788
No related branches found
No related tags found
No related merge requests found
......@@ -68,16 +68,10 @@ template <int dim> class EllipticEnergy {
double const mgx = mg * x;
if (pgx >= 0 && mgx >= 0) {
ret = pg;
dverb << "## Directional derivative (as per scalar product w/ "
"semigradient): " << -(ret * mg)
<< " (coordinates of the restriction)" << std::endl;
ret *= -1;
return true;
} else if (pgx <= 0 && mgx <= 0) {
ret = mg;
dverb << "## Directional derivative (as per scalar product w/ "
"semigradient): " << -(ret * pg)
<< " (coordinates of the restriction)" << std::endl;
ret *= -1;
return true;
} else {
......@@ -86,9 +80,6 @@ template <int dim> class EllipticEnergy {
SmallVector d;
smoothGradient(x, d);
complementaryProjection(d, x, ret);
dverb << "## Directional derivative (as per scalar product w/ "
"semigradient): " << -(ret * ret)
<< " (coordinates of the restriction)" << std::endl;
ret *= -1;
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment