Skip to content

Commit

Permalink
Update BestFirst.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
hani-girgis authored Aug 16, 2020
1 parent 355d4bf commit 1b57ce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BestFirst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ BestFirst<T>::BestFirst(const Matrix &f, const Matrix &l,

// Step 6
int childNum = eList.size();
double resultList[childNum] { 0.0 };
std::vector<double> resultList(childNum, 0.0);
#pragma omp parallel for schedule(static) num_threads(threadNum)
for (int i = 0; i < childNum; i++) {
Node child = eList[i];
Expand Down

0 comments on commit 1b57ce8

Please sign in to comment.