From 69a174c6050ac0b88b8add7ffc19cce38f2170f9 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Sun, 03 Jul 2016 20:53:35 +0000
Subject: [PATCH] Prepared skeleton for cluster counting routines

---
 src/Makefile.am |    4 ++--
 src/general.h   |   12 ++++++++++++
 src/cluster.h   |    0 
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index fb2c46b..04ad1c7 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,5 +1,5 @@
 bin_PROGRAMS = trisurf tsmeasure
-trisurf_SOURCES = general.c vertex.c bond.c triangle.c cell.c vesicle.c initial_distribution.c io.c dumpstate.c frame.c energy.c timestep.c vertexmove.c bondflip.c main.c poly.c stats.c sh.c shcomplex.c constvol.c snapshot.c restore.c
+trisurf_SOURCES = general.c vertex.c bond.c triangle.c cell.c vesicle.c initial_distribution.c io.c dumpstate.c frame.c energy.c timestep.c vertexmove.c bondflip.c main.c poly.c stats.c sh.c shcomplex.c constvol.c snapshot.c restore.c cluster.c
 GITVERSION:=$(shell git --no-pager describe --tags --always --dirty)
 AM_CFLAGS = -Wall -Werror -DTS_VERSION=\"$(GITVERSION)\" -fgnu89-inline
 AM_CPPFLAGS = ${libxml2_CFLAGS} -fgnu89-inline
@@ -18,7 +18,7 @@
 #spherical_trisurf_ff_SOURCES = general.c vertex.c bond.c triangle.c cell.c vesicle.c initial_distribution.c io.c frame.c energy.c timestep.c vertexmove.c spherical_trisurf_ff.c sh.c bondflip.c poly.c stats.c shcomplex.c
 
 
-tsmeasure_SOURCES = general.c vertex.c bond.c triangle.c cell.c vesicle.c initial_distribution.c io.c dumpstate.c frame.c energy.c timestep.c vertexmove.c bondflip.c tsmeasure.c poly.c stats.c sh.c shcomplex.c constvol.c snapshot.c restore.c
+tsmeasure_SOURCES = general.c vertex.c bond.c triangle.c cell.c vesicle.c initial_distribution.c io.c dumpstate.c frame.c energy.c timestep.c vertexmove.c bondflip.c tsmeasure.c poly.c stats.c sh.c shcomplex.c constvol.c snapshot.c restore.c cluster.c
 tsmeasure_LDADD = ${libcurl_LIBS} ${libxml2_LIBS}
 #gitversion.c: .git/HEAD .git/index
 #    echo "const char *gitversion = \"$(shell git rev-parse HEAD)\";" > $@
diff --git a/src/cluster.h b/src/cluster.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/cluster.h
diff --git a/src/general.h b/src/general.h
index a6f5114..5189c23 100644
--- a/src/general.h
+++ b/src/general.h
@@ -319,6 +319,18 @@
 
 
 
+typedef struct{
+	ts_uint nvtx;
+	ts_uint idx;
+	ts_vertex **vtx;
+} ts_cluster;
+
+typedef struct{
+	ts_uint n;
+	ts_cluster **cluster;
+} ts_cluster_list;
+
+
 /* GLOBAL VARIABLES */
 
 int quiet;

--
Gitblit v1.9.3