Skip to content

Commit f729cc1

Browse files
author
shijiashuai
committed
style: fix clang-format violation in force_spatial_hash.cu
Fix formatting of variable declaration to comply with clang-format style.
1 parent 4df9541 commit f729cc1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/cuda/force_spatial_hash.cu

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,7 @@ void SpatialHashGrid::build(const ParticleData* d_particles) {
245245
grid_dims_.z = static_cast<int>(ceilf((bbox_max_.z - bbox_min_.z) / cell_size_)) + 1;
246246

247247
// Use int64_t to prevent integer overflow for large grids
248-
int64_t new_total_cells =
249-
static_cast<int64_t>(grid_dims_.x) * grid_dims_.y * grid_dims_.z;
248+
int64_t new_total_cells = static_cast<int64_t>(grid_dims_.x) * grid_dims_.y * grid_dims_.z;
250249

251250
// Sanity check: limit total cells to prevent memory exhaustion
252251
if (new_total_cells > 100000000) { // 100 million cells max

0 commit comments

Comments
 (0)