Skip to content

Commit

Permalink
Fix indexing bug in gn_nxx() for 2D case.
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbolt committed Mar 12, 2024
1 parent eaa3745 commit 265631b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Source/svFSI/nn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ void gn_nxx(const int l, const int eNoN, const int nsd, const int insd, Array<do
}

K.set_row(0, {xXi(0,0)*xXi(0,0), xXi(1,0)*xXi(1,0), t*xXi(0,0)*xXi(1,0)});
K.set_row(1, {xXi(0,1)*xXi(0,0), xXi(1,1)*xXi(1,1), t*xXi(0,1)*xXi(1,1)});
K.set_row(1, {xXi(0,1)*xXi(0,1), xXi(1,1)*xXi(1,1), t*xXi(0,1)*xXi(1,1)});
K.set_row(2, {xXi(0,0)*xXi(0,1), xXi(1,0)*xXi(1,1), xXi(0,0)*xXi(1,1) + xXi(0,1)*xXi(1,0)});

for (int a = 0; a < eNoN; a++) {
Expand Down

0 comments on commit 265631b

Please sign in to comment.