From 4932816023f1465bb7fbf4dcbd01f310b85bcf0f Mon Sep 17 00:00:00 2001 From: Sebastian Grimberg Date: Thu, 29 Feb 2024 10:30:54 -0800 Subject: [PATCH] Fix bug in old debug check --- palace/fem/libceed/restriction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/palace/fem/libceed/restriction.cpp b/palace/fem/libceed/restriction.cpp index 9c053bb50..130308397 100644 --- a/palace/fem/libceed/restriction.cpp +++ b/palace/fem/libceed/restriction.cpp @@ -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++; }