doyubkim / fluid-engine-dev

Fluid simulation engine for computer graphics applications

Home Page:https://fluidenginedevelopment.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FdmCompressedBlas3 bug in time_perfs_tests

yangfengzzz opened this issue · comments

in buidSystem func:
const size_t cIdx = acc.index(i, j, k); const size_t lIdx = acc.index(i - 1, j, k); const size_t rIdx = acc.index(i + 1, j, k); const size_t dIdx = acc.index(i, j - 1, k); const size_t uIdx = acc.index(i, j + 1, k); const size_t bIdx = acc.index(i, j, k - 1); const size_t fIdx = acc.index(i, j, k + 1)
size_t is an unsigned type, 0-1 != -1 will cause the wrong results.

Let me double check the range. It is supposed to have a 1-width padding.