Trisurf Monte Carlo simulator
Samo Penic
2016-07-03 bfa6c4d2d234dac214ae05855669844255a32979
src/main.c
@@ -30,6 +30,9 @@
   ts_tape *tape;
   ts_uint start_iteration=0;
   force_from_tape=0;
   /* Area and volume for constant area and constant volume are initialized to be zero */
   A0=0;
   V0=0;
   /* create lock file */
   createPidFile("ts_trisurf",".lock",0);
   parse_args(argv,argc); // sets global variable command_line_args (defined in io.h)
@@ -51,13 +54,13 @@
      if(fd!=NULL){
         arguments_no=fscanf(fd,"%u", &start_iteration);
         if(arguments_no==0){
            ts_fprintf(stdout,"No information of start iteration in .status file");
            ts_fprintf(stdout,"No information of start iteration in .status file\n");
            }
         fclose(fd);
         start_iteration++;
         start_iteration++;
      }
      else
         ts_fprintf(stdout,"No .status file. The iteration count will start from 0");
         ts_fprintf(stdout,"No .status file. The iteration count will start from 0\n");
/* 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);