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 | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/main.c b/src/main.c index df7d6fa..36da13a 100644 --- a/src/main.c +++ b/src/main.c @@ -46,6 +46,12 @@ 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