Skip to content

Commit

Permalink
A minor fix
Browse files Browse the repository at this point in the history
Signed-off-by: Shintaro Sakoda <[email protected]>
  • Loading branch information
SakodaShintaro committed Mar 14, 2024
1 parent cbe3b39 commit 50d7ed8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions include/multigrid_pclomp/multigrid_ndt_omp_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1047,13 +1047,8 @@ double pclomp::MultiGridNormalDistributionsTransform<PointSource, PointTarget>::
size_t found_neighborhood_voxel_num = 0;

// Thread-wise results
std::vector<double> t_nvs(num_threads_);
std::vector<size_t> t_found_nnvn(num_threads_);

for(int i = 0; i < num_threads_; ++i) {
t_nvs[i] = 0;
t_found_nnvn[i] = 0;
}
std::vector<double> t_nvs(num_threads_, 0.0);
std::vector<size_t> t_found_nnvn(num_threads_, 0);

#pragma omp parallel for num_threads(num_threads_) schedule(guided, 8)
for(size_t idx = 0; idx < trans_cloud.size(); ++idx) {
Expand Down

0 comments on commit 50d7ed8

Please sign in to comment.