Skip to content

Commit f9f0e92

Browse files
author
Kun Chen
committed
find the bug in interaction reducibility check. the code now works for 2D at least up to the 3rd order
1 parent b31a79f commit f9f0e92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/weight.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ bool weight::IsInteractionReducible(loop &LoopBasisVer, int LoopNum) {
365365

366366
bool Flag = true;
367367
for (int i = 1; i < LoopNum; i++) {
368-
if (Equal(LoopBasisVer[i], 0.0)) {
368+
if (!Equal(LoopBasisVer[i], 0.0)) {
369369
Flag = false;
370370
break;
371371
}

0 commit comments

Comments
 (0)