 			pong[pong_nb * 4 + 2] = vertex.z;
 			pong[pong_nb * 4 + 3] = vertex.w;
 			pong_nb++;
-		}
+
+			if (_tid == 0 && seed_i == 104 && seed_j == 12)
+			{
+
+				test_double[index] = vertex.x;
+				test_double[index + 1] = vertex.y;
+				test_double[index + 2] = vertex.z;
+				test_double[index + 3] = vertex.w;
+				index = index + 4;
+			}
+		}
+
+		prev_vertex = vertex;
+		prev_vertex_position = vertex_position;
+		prev_status = status;
+		prev_l = l;
+		prev_index_vertex = k;
 	}
 	return;
 }

	{
		printf("x : %.17lf, y: %.17lf, z : %.17lf, w : %.6lf\n\n", host_test_dis[101 + i * 4 + 0], host_test_dis[101 + i * 4 + 1], host_test_dis[101 + i * 4 + 2], host_test_dis[101 + i * 4 + 3]);
	}
	printf("successfully running!\n");
}
			}
		}
	}
	if (tid == 0 && _i == 1)
	{
		test_polygon[3] = current_seed_pos.x;
		test_polygon[4] = current_seed_pos.y;
