fix for 1-sized grids

master
Jan Petykiewicz 5 years ago
parent a37df3a74f
commit 314e36a3cc

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

Loading…
Cancel
Save