create local variable in OPENMP loop in G3PointAction.cpp
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ target_sources(G3PointPlugin
|
||||
ui/WolmanCustomPlot.ui
|
||||
)
|
||||
|
||||
set(QG3POINT_PLUGIN_VERSION "0.4")
|
||||
set(QG3POINT_PLUGIN_VERSION "0.5")
|
||||
|
||||
add_subdirectory( include )
|
||||
add_subdirectory( src )
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
//##########################################################################
|
||||
//# #
|
||||
//# G3POINT PLUGIN FOR CLOUDCOMPARE #
|
||||
//# #
|
||||
//# This program is free software: you can redistribute it and/or modify #
|
||||
//# it under the terms of the GNU General Public License as published by #
|
||||
//# the Free Software Foundation, either version 3 of the License, #
|
||||
//# or (at your option) any later version. #
|
||||
//# #
|
||||
//# This program is distributed in the hope that it will be useful, #
|
||||
//# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
//# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
||||
//# GNU General Public License for more details. #
|
||||
//# #
|
||||
//# You should have received a copy of the GNU General Public License #
|
||||
//# along with this program. If not, see <https://www.gnu.org/licenses/>. #
|
||||
//# #
|
||||
//# COPYRIGHT: CNRS / OSERen / UNIVERSITY OF RENNES #
|
||||
//# #
|
||||
//##########################################################################
|
||||
@@ -1155,10 +1155,6 @@ bool G3PointAction::wolman()
|
||||
|
||||
float dx = 1.1 * b_axis.maxCoeff();
|
||||
|
||||
Eigen::ArrayXf x_grid;
|
||||
Eigen::ArrayXf y_grid;
|
||||
Eigen::ArrayXf distances;
|
||||
Eigen::Index minLoc;
|
||||
std::vector<Eigen::ArrayXf> d;
|
||||
|
||||
std::random_device rd;
|
||||
@@ -1172,6 +1168,12 @@ bool G3PointAction::wolman()
|
||||
#endif
|
||||
for (int k = 0; k < n_iter; k++)
|
||||
{
|
||||
// local variables
|
||||
Eigen::ArrayXf x_grid;
|
||||
Eigen::ArrayXf y_grid;
|
||||
Eigen::ArrayXf distances;
|
||||
Eigen::Index minLoc;
|
||||
|
||||
if (k % 20 == 0)
|
||||
{
|
||||
std::cout << k << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user