Skip to content

Commit

Permalink
Fix wrong initialization in case of no OpenMP support. openMVG#293
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoulon committed May 13, 2015
1 parent 84d6ad4 commit fb34306
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/openMVG/sfm/sfm_data_BA_ceres.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ ceres::CostFunction * IntrinsicsToCostFunction(IntrinsicBase * intrinsic, const


Bundle_Adjustment_Ceres::BA_options::BA_options(const bool bVerbose, bool bmultithreaded)
:_bVerbose(bVerbose)
:_bVerbose(bVerbose),
_nbThreads(1)
{
#ifdef OPENMVG_USE_OPENMP
_nbThreads = omp_get_max_threads();
Expand Down

0 comments on commit fb34306

Please sign in to comment.