Stencil assembly fails when stencil inputs are assigned to variable
fredrikbk opened this issue · 3 comments
fredrikbk commented
The following code causes a stencil assembly to fail:
self = l[0,0;0,1].a + l[0,0; 0,-1].a +
l[0,0;1,0].a + l[0,0;-1, 0].a;
vnMat(orig,orig) = self;
The error message is:
Internal error at /Users/kjoelsta/Dropbox/projects/simit/simit/src/stencil_norm.cpp:31 in visit
Condition failed: rowNormOff.size() != 0
Set read visit not paired to output write
This is exposed by the (disabled) test issue.44 in 14e2067.
gkanwar commented
Hmm, this should have been handled by definition inlining. I can look into it this coming week.
fredrikbk commented
I may have accidentally deleted this code when I was fixing a problem with inlining (sorry). I can't find the commit though. Was it in inline.cpp
?