fix a bug on absorving lifted evidence

This commit is contained in:
Tiago Gomes 2012-05-31 14:09:50 +01:00
parent c2297c3f70
commit 7429a39b48
1 changed files with 2 additions and 1 deletions

View File

@ -970,7 +970,8 @@ FoveSolver::absorve (
if (commCt->empty() == false) {
if (formulas.size() > 1) {
LogVarSet excl = g->exclusiveLogVars (i);
Parfactors countNormPfs = countNormalize (g, excl);
Parfactor tempPf (g, commCt);
Parfactors countNormPfs = countNormalize (&tempPf, excl);
for (size_t j = 0; j < countNormPfs.size(); j++) {
countNormPfs[j]->absorveEvidence (
formulas[i], obsFormula.evidence());