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

Be less explicit about the 2D setting

parent 5e269831
No related branches found
No related tags found
No related merge requests found
...@@ -294,7 +294,8 @@ void minimisationInitialiser(Functional const &J, Bisection const &bisection, ...@@ -294,7 +294,8 @@ void minimisationInitialiser(Functional const &J, Bisection const &bisection,
tangentialMinimisation(J, x1, descDir1, bisection); tangentialMinimisation(J, x1, descDir1, bisection);
double const Jx1 = J(x1); double const Jx1 = J(x1);
SmallVector x2 = { -x1[0], -x1[1] }; SmallVector x2(0);
x2.axpy(-1, x1);
SmallVector const descDir2 = { x2[1], -x2[0] }; SmallVector const descDir2 = { x2[1], -x2[0] };
tangentialMinimisation(J, x2, descDir2, bisection); tangentialMinimisation(J, x2, descDir2, bisection);
double const Jx2 = J(x2); double const Jx2 = J(x2);
......
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