| | |
| | | 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){ |
| | |
| | | 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); |