Skip to content

Commit

Permalink
core: LB: remove unused globals.
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSzuttor committed Jul 11, 2019
1 parent 81b9c33 commit e416e7e
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/core/grid_based_algorithms/lbgpu_cuda.cu
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,6 @@ static LB_extern_nodeforcedensity_gpu *extern_node_force_densities = nullptr;
/** @brief Force on the boundary nodes */
static float *lb_boundary_force = nullptr;

/** @brief Velocity at the boundary */
static float *lb_boundary_velocity = nullptr;

/** @name pointers for bound index array */
/*@{*/
static int *boundary_node_list = nullptr;
static int *boundary_index_list = nullptr;
static size_t size_of_boundindex = 0;
/*@}*/

/** @name pointers for additional cuda check flag */
/*@{*/
static int *gpu_check = nullptr;
Expand Down Expand Up @@ -2521,9 +2511,8 @@ void lb_init_boundaries_GPU(int host_n_lb_boundaries, int number_of_boundnodes,
float *boundary_velocity = nullptr;
int *boundary_node_list = nullptr;
int *boundary_index_list = nullptr;
size_t size_of_boundindex = 0;

size_of_boundindex = number_of_boundnodes * sizeof(int);
auto const size_of_boundindex = number_of_boundnodes * sizeof(int);
cuda_safe_mem(cudaMalloc((void **)&boundary_node_list, size_of_boundindex));
cuda_safe_mem(cudaMalloc((void **)&boundary_index_list, size_of_boundindex));
cuda_safe_mem(cudaMemcpy(boundary_index_list, host_boundary_index_list,
Expand Down

0 comments on commit e416e7e

Please sign in to comment.