 			valid_visited[facetidx_in_block][cur] = -1;
 			cur += k_f;
 		}
-		bool valid_visit_flag = false;
+		bool valid_visit_flag = false;*/
 		//end debug
 		has_visited_nb[facetidx_in_block] = 0;
 		//load \memory[facets_nn] 1 time.

				points_nb,
				points_nn,
				k_p
				); if (current_polygon.vertex_nb < 3 /*|| current_polygon.vertex_nb > 6*/) break;
			atomicAdd(&valid_visited_nb[facetidx_in_block], 1);
			//if (tid == facets_nb - 1 && counter == 3){
				/*int idx = 0;
				double* ret = retdata + pid * 32;

				//dim3 threads(fk_, 1, 1);
				int threads = 256;
				int blocks = (fk_ * facet_nb_) / threads + (((fk_ * facet_nb_) % threads) ? 1 : 0);
				kernel << < blocks / 16, threads >> > (
					dev_vertex_, vertex_nb_,
					dev_points_, points_nb_,
					dev_facets_, facet_nb_,
