Skip to content

Commit

Permalink
Fixing geese likelihood w openmp
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Oct 2, 2023
1 parent 70ba5fe commit b55cc88
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/barry/models/geese/geese-meat-likelihood.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ inline double Geese::likelihood(
}

// Setting the probability at the node
node.subtree_prob[s] = 0.0;
for (size_t n = 0u; n < psets.size(); ++n)
node.subtree_prob[s] += totprob_n[n];

Expand Down
1 change: 1 addition & 0 deletions tests/07-geese-flock.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#undef _OPENMP
#ifndef CATCH_CONFIG_MAIN
// #include "/opt/intel/oneapi/advisor/2022.0.0/include/advisor-annotate.h"
#include <chrono>
Expand Down
1 change: 0 additions & 1 deletion tests/10-geese-predict.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#undef _OPENMP
#include "tests.hpp"

#include "../include/barry/models/geese.hpp"
Expand Down

0 comments on commit b55cc88

Please sign in to comment.