checkpoint
[anneal.git] / src / edu / berkeley / qfat / geom / BindingGroup.java
index d1ff8b8..aec9329 100644 (file)
@@ -13,6 +13,7 @@ public class BindingGroup<T extends HasBindingGroup> implements Iterable<T> {
     }
 
     public void merge(BindingGroup<T> bg, Matrix m) {
+        if (bg==this) throw new Error();
         for(HasBindingGroup hbg : bg.matrices.keySet()) {
             matrices.put((T)hbg, bg.matrices.get(hbg).times(m));
             hbg.bindingGroup = this;