Skip to content

Commit

Permalink
fix isBdNode not assigned a value bug (#12)
Browse files Browse the repository at this point in the history
* fix `isBdNode` not being assigned a value in gradmatrix.m
  • Loading branch information
litaihe authored Nov 10, 2023
1 parent 29f31c8 commit 884a92a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solver/gradmatrix.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
i = repmat((1:NE)',2,1);
j = double(edge(:));
s = [-ones(NE,1),ones(NE,1)];
isBdNode = false(N,1);
if any(isBdEdge) % no grad on boundary edges
bdEdge = edge(isBdEdge,:);
isBdNode = false(N,1);
isBdNode(bdEdge(:)) = true;
idx = ~(isBdEdge(i) | isBdNode(j));
else
Expand Down

0 comments on commit 884a92a

Please sign in to comment.