From b55cc88348b49aaca319b589e3ec76a76d82c006 Mon Sep 17 00:00:00 2001 From: "George G. Vega Yon" Date: Mon, 2 Oct 2023 09:54:38 -0600 Subject: [PATCH] Fixing geese likelihood w openmp --- include/barry/models/geese/geese-meat-likelihood.hpp | 1 + tests/07-geese-flock.cpp | 1 + tests/10-geese-predict.cpp | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/barry/models/geese/geese-meat-likelihood.hpp b/include/barry/models/geese/geese-meat-likelihood.hpp index 365df2ce2..4b78e289a 100644 --- a/include/barry/models/geese/geese-meat-likelihood.hpp +++ b/include/barry/models/geese/geese-meat-likelihood.hpp @@ -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]; diff --git a/tests/07-geese-flock.cpp b/tests/07-geese-flock.cpp index 06ae7bf8d..dd984ce36 100644 --- a/tests/07-geese-flock.cpp +++ b/tests/07-geese-flock.cpp @@ -1,3 +1,4 @@ +#undef _OPENMP #ifndef CATCH_CONFIG_MAIN // #include "/opt/intel/oneapi/advisor/2022.0.0/include/advisor-annotate.h" #include diff --git a/tests/10-geese-predict.cpp b/tests/10-geese-predict.cpp index 6dae5b4a6..497054322 100644 --- a/tests/10-geese-predict.cpp +++ b/tests/10-geese-predict.cpp @@ -1,4 +1,3 @@ -#undef _OPENMP #include "tests.hpp" #include "../include/barry/models/geese.hpp"