From 3d0247677949505858b0b947fc3b216bb2a7bc80 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Fri, 13 May 2016 19:09:59 +0000
Subject: [PATCH] Added many fixes for reruning the simulations, starting from tapes, added Completed status, etc.

---
 src/main.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/main.c b/src/main.c
index e4b306f..36da13a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -42,10 +42,17 @@
 
     if(command_line_args.dump_from_vtk[0]!=0){
 		ts_fprintf(stdout,"************************************************\n");
-		ts_fprintf(stdout,"***** Dumping vesicle from VTK points list *****\n");
+		ts_fprintf(stdout,"**** Restoring vesicle from VTK points list ****\n");
 		ts_fprintf(stdout,"************************************************\n\n");
 		vesicle = parseDump(command_line_args.dump_from_vtk);
 		tape = vesicle->tape;
+		FILE *fd=fopen(".status","r");
+		if(fd!=NULL){
+			fscanf(fd,"%u", &start_iteration);
+			fclose(fd);
+			start_iteration++;
+		}
+/* Here you should read new tape file, reassign some values in vertex from the tape and assign read tape to vesicle->tape */
 //        tape=parsetape(command_line_args.tape_fullfilename);
   //      vesicle=vtk2vesicle(command_line_args.dump_from_vtk,tape);
     }

--
Gitblit v1.9.3