From d4dbf12f8b9fb4beec3610525020d67c8391f1d6 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Mon, 29 Aug 2011 21:00:48 +0000 Subject: [PATCH] Bug fix in ISAM2 wildfire function --- gtsam/nonlinear/GaussianISAM2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtsam/nonlinear/GaussianISAM2.cpp b/gtsam/nonlinear/GaussianISAM2.cpp index bf3a91b0a..78a1c3a97 100644 --- a/gtsam/nonlinear/GaussianISAM2.cpp +++ b/gtsam/nonlinear/GaussianISAM2.cpp @@ -36,8 +36,8 @@ void optimize2(const GaussianISAM2::sharedClique& clique, double threshold, // If not redone, then has one of the separator variables changed significantly? bool recalculate = cliqueReplaced; if(!recalculate) { - BOOST_FOREACH(Index frontal, (*clique)->frontals()) { - if(changed[frontal]) { + BOOST_FOREACH(Index parent, (*clique)->parents()) { + if(changed[parent]) { recalculate = true; break; }