simit
simit copied to clipboard
Stencil assembly fails when stencil inputs are assigned to variable
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 14e2067e253ae04a1b40eeb35dac8848174d157b.
@gkanwar do you have time to look at this?
Hmm, this should have been handled by definition inlining. I can look into it this coming week.
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
?