From ab798b28b9f3b836db6c9eb9e4a25d57981022ae Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@fe.uni-lj.si>
Date: Tue, 01 Mar 2016 08:51:46 +0000
Subject: [PATCH] Added resotration from vtu files by using --restore-from-vtk flag. Requires filename

---
 src/restore.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/restore.c b/src/restore.c
index a3196bd..19d8cad 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -16,7 +16,7 @@
 #include "initial_distribution.h"
 #include "io.h"
 
-ts_bool parseDump(char *dumpfname) {
+ts_vesicle *parseDump(char *dumpfname) {
 	xmlDocPtr doc;
 	xmlNodePtr cur, cur1,cur2;
 	ts_vesicle *vesicle=NULL;
@@ -80,13 +80,13 @@
 	init_normal_vectors(vesicle->tlist);
 	mean_curvature_and_energy(vesicle);
 
-/* TODO: cells, polymeres, filaments, core, tape */
+/* TODO: filaments */
 
 	fprintf(stderr,"Restoration completed\n");
-	write_vertex_xml_file(vesicle,999);
-	vesicle_free(vesicle);
-	exit(0);
-	return TS_SUCCESS;
+//	write_vertex_xml_file(vesicle,999);
+//	vesicle_free(vesicle);
+//	exit(0);
+	return vesicle;
 }
 
 ts_bool setGlobalTapeTXTfromTapeTag(xmlDocPtr doc, xmlNodePtr cur){

--
Gitblit v1.9.3