devitocodes / devito

DSL and compiler framework for automated finite-differences and stencil computation

Home Page:http://www.devitoproject.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pickle operator reconstruction leads to slightly different code

mloubout opened this issue · comments

In some case the pickling leads to miss-reconstruction of -1 with differences like

  - loat px = -floor((-o_x + src_coords[p_src][0])/h_x) + (-o_x + src_coords[p_src][0])/h_x;
  + loat px = (-1)*floor((-o_x + src_coords[p_src][0])/h_x) + (-o_x + src_coords[p_src][0])/h_x;

In test_pickle.py::TestOperator::test_usave_sampled