From d06a9476717d788c426e88b6365d7a863928b5c9 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Mon, 09 Dec 2013 00:29:28 +0000
Subject: [PATCH] Debugging bondflip

---
 src/bond.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/bond.c b/src/bond.c
index b70a871..7e98110 100644
--- a/src/bond.c
+++ b/src/bond.c
@@ -89,8 +89,10 @@
 		else i3=i;
 	}
 		bond->adjvtx[im]=bond->tria[1]->vertex[i3];
-		
-
+#ifdef DEBUG
+	if(bond->adjvtx[0]==NULL) fatal("AdjVTX[0] is NULL",1);
+	if(bond->adjvtx[1]==NULL) fatal("AdjVTX[1] is NULL",1);
+#endif
 	return TS_SUCCESS;
 }
 

--
Gitblit v1.9.3