Neighbour check should be less or equal to 6 to find 2 TTAN

This commit is contained in:
Simon Robertshaw 2012-06-07 19:31:45 +01:00
parent 04a09d997d
commit 1d7b77b144

View File

@ -17,7 +17,7 @@
int update_TTAN(UPDATE_FUNC_ARGS) { int update_TTAN(UPDATE_FUNC_ARGS) {
int nx, ny, ttan = 0; int nx, ny, ttan = 0;
if(nt<8) if(nt<=6)
{ {
for (nx=-1; nx<2; nx++) for (nx=-1; nx<2; nx++)
for (ny=-1; ny<2; ny++) { for (ny=-1; ny<2; ny++) {