forked from jan/opencl_fdtd
fix for 1-sized grids
This commit is contained in:
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…
Reference in New Issue
Block a user