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

We have the correct coordinate system

parent ff007409
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,6 @@ class GlobalNonlinearity {
for (size_t i = 0; i < u.size(); ++i) {
Interval<double> D;
auto const res = restriction(i);
// TODO: is the coordinate system the right one here?
res->directionalSubDiff(u[i], v[i], D);
subdifferential[0] += D[0];
subdifferential[1] += D[1];
......
......@@ -43,7 +43,6 @@ template <int dimension> class LocalNonlinearity {
}
double const un = u.two_norm();
double const ndotp = (u * v) / un;
// Our coordinate system is now such that v is a unit vector!
if (ndotp > 0) {
D[1] = ndotp * func_->rightDifferential(un);
D[0] = ndotp * func_->leftDifferential(un);
......
* check if v should be normalised by default
* the subdifferentials for the nonlinearity are probably taken w.r.t a different coordinate system
* use nested iteration to obtain better iteration to start with
* fix up octave bindings (low-pri)
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