Skip to content

Commit

Permalink
Fix bug in old debug check
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiangrimberg committed Feb 29, 2024
1 parent 1ed1123 commit 705e2ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion palace/fem/libceed/restriction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ void InitNativeRestr(const mfem::FiniteElementSpace &fespace,
int nnz = 0;
for (int k = 0; k < P; k++)
{
if (k < j - 1 && k > j + 1 && el_trans_j(k) != 0.0)
if ((k < j - 1 || k > j + 1) && el_trans_j(k) != 0.0)
{
nnz++;
}
Expand Down

0 comments on commit 705e2ba

Please sign in to comment.