Trisurf Monte Carlo simulator
Samo Penic
2014-03-08 62681163a4c47fc6dbd6b2b96f84171b20cba3ed
src/main.c
@@ -21,7 +21,7 @@
int main(int argv, char *argc[]){
   ts_vesicle *vesicle;
   ts_tape *tape;
   ts_uint start_iteration=0;
   ts_uint start_iteration=-1;
   parse_args(argv,argc);
   ts_fprintf(stdout,"\nStarting program...\n\n");
if(force_from_tape){
@@ -37,9 +37,14 @@
ts_fprintf(stdout,"**********************************************************************\n\n");
tape=parsetape("tape");
vesicle=restore_state(&start_iteration);
if(start_iteration>=tape->iterations){
   ts_fprintf(stdout, "Simulation already completed. if you want to rerun it try with --force-from-tape or --reset-iteration-count\n\n");
   return 0;
}
}
run_simulation(vesicle, tape->mcsweeps, tape->inititer, tape->iterations);
run_simulation(vesicle, tape->mcsweeps, tape->inititer, tape->iterations, start_iteration+1);
write_master_xml_file("test.pvd");
write_dout_fcompat_file(vesicle,"dout");
vesicle_free(vesicle);