Skip to content
Snippets Groups Projects
Commit 9c95c443 authored by Jonathan Youett's avatar Jonathan Youett
Browse files

Bugfix: index 'j' should be 'k'

parent de310069
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ void ProjectedBlockGSStep<OperatorType, DiscFuncType>::iterate()
v[k] += sr / mat[i][i][k][k];
// Project
if (hasObstacle_[i][j]==true) {
if (hasObstacle_[i][k]==true) {
if (v[k] < defectObstacle.lower(k))
v[k] = defectObstacle.lower(k);
else if (v[k] > defectObstacle.upper(k))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment