Possible fix for correction:
diff --git a/src/lbdecision.cc b/src/lbdecision.cc index a5c334e..2005585 100644 --- a/src/lbdecision.cc +++ b/src/lbdecision.cc @@ -572,9 +572,11 @@ LBDecision::get_new_weights(LBData &data, LBRule &rule) w_iter->second = 0.; //zero out previous weight ++w_iter; } + weights.insert(pair<string,float>(iter->first,iter->second)); + group = iter->second; + } else { + weights.insert(pair<string,float>(iter->first,0.)); } - weights.insert(pair<string,float>(iter->first,iter->second)); - group = iter->second; } else { weights.insert(pair<string,float>(iter->first,0.));