Skip to content

Commit

Permalink
Code simplification.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsachetto committed Nov 16, 2023
1 parent a95a918 commit a87301f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/domains_library/domain.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ SET_CUSTOM_DATA_FOR_MESH(generic_custom_data) {
memcpy(cell->mesh_extra_info, custom_data, size);
}


SET_SPATIAL_DOMAIN(initialize_grid_with_custom_mesh) {

char *mesh_file = NULL;
Expand All @@ -355,7 +354,6 @@ SET_SPATIAL_DOMAIN(initialize_grid_with_custom_mesh) {
ret = (int) set_custom_mesh_from_file(the_grid, mesh_file, total_number_mesh_points, start_h, 0, NULL);
} else {
ret = (int) set_custom_mesh_from_file(the_grid, mesh_file, total_number_mesh_points, start_h, num_extra_fields, generic_custom_data);

}

free(mesh_file);
Expand Down
1 change: 0 additions & 1 deletion src/linear_system_solver_library/gpu_solvers_cublas_11.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,6 @@ SOLVE_LINEAR_SYSTEM(gpu_conjugate_gradient) {
check_cuda_error(cusparseSpMV(persistent_data->cusparseHandle, CUSPARSE_OPERATION_NON_TRANSPOSE, &alpha, persistent_data->matA, persistent_data->vecp, &beta, persistent_data->vecAx, CUDA_R_32F, CUSPARSE_MV_ALG_DEFAULT, persistent_data->buffer));
cublasSdot(persistent_data->cublasHandle, N, persistent_data->d_p, 1, persistent_data->d_Ax, 1, &dot);

cublasSdot(persistent_data->cublasHandle, N, persistent_data->d_p, 1, persistent_data->d_Ax, 1, &dot);
a = r1 / dot;

cublasSaxpy(persistent_data->cublasHandle, N, &a, persistent_data->d_p, 1, persistent_data->d_x, 1);
Expand Down
1 change: 0 additions & 1 deletion src/linear_system_solver_library/gpu_solvers_cublas_12.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ SOLVE_LINEAR_SYSTEM(gpu_conjugate_gradient) {

cublasSdot(persistent_data->cublasHandle, N, persistent_data->d_p, 1, persistent_data->d_Ax, 1, &dot);

cublasSdot(persistent_data->cublasHandle, N, persistent_data->d_p, 1, persistent_data->d_Ax, 1, &dot);
a = r1 / dot;

cublasSaxpy(persistent_data->cublasHandle, N, &a, persistent_data->d_p, 1, persistent_data->d_x, 1);
Expand Down
1 change: 0 additions & 1 deletion src/main_expand_scar.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ static void expand_scar(const char *input, const char *output, int n_rows, char*

for (int i = 0; i < n_rows; i++) {


FOR_EACH_CELL(grid) {
cell->visited = false;
}
Expand Down

0 comments on commit a87301f

Please sign in to comment.