fix for 1-sized grids

This commit is contained in:
Jan Petykiewicz 2019-07-14 23:50:11 -07:00
parent a37df3a74f
commit 314e36a3cc

View File

@ -78,7 +78,8 @@ int p{{r}} = + (int) di{{r}};
int wrap_{{r}} = (s{{r}} - 1) * (int) di{{r}};
if ( {{r}} == 0 ) {
m{{r}} = wrap_{{r}};
} else if ( {{r}} == s{{r}} - 1 ) {
}
if ( {{r}} == s{{r}} - 1 ) {
p{{r}} = -wrap_{{r}};
}
{% endfor %}