 
 void lbm_vars_cuda_dealloc(lbm_vars* vars)
 {
-    HANDLE_ERROR(cudaFree(vars->obstacles));
     lbm_u_cuda_dealloc(&vars->u);
     lbm_lattices_cuda_dealloc(&vars->f0);
     lbm_lattices_cuda_dealloc(&vars->f1);


void lbm_vars_dealloc(lbm_vars* vars)
{
    free(vars->obstacles);
    lbm_u_dealloc(&vars->u);
    lbm_lattices_dealloc(&vars->f0);
    lbm_lattices_dealloc(&vars->f1);

    lbm_sim->nz = nz;
   
    lbm_vars_alloc(&lbm_sim->h_vars, nl);

    double vel[ny];
    initVelocity(vel, ny);
