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

The linear update is negative!

parent f76139ff
Branches
No related tags found
No related merge requests found
...@@ -233,10 +233,10 @@ int main(int argc, char *argv[]) { ...@@ -233,10 +233,10 @@ int main(int argc, char *argv[]) {
b2 = b1; b2 = b1;
b3 = b1; b3 = b1;
// b += linear update // b -= linear update
stiffnessMatrix.umv(u1_diff_old, b1); stiffnessMatrix.mmv(u1_diff_old, b1);
stiffnessMatrix.umv(u2_diff_old, b2); stiffnessMatrix.mmv(u2_diff_old, b2);
stiffnessMatrix.umv(u3_diff_old, b3); stiffnessMatrix.mmv(u3_diff_old, b3);
// {{{ Assemble terms for the nonlinearity // {{{ Assemble terms for the nonlinearity
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment