| | |
| | | *plugins=plugin0; |
| | | plugins[1]=plugin1; |
| | | ts_plugin_list *plist=init_plugin_list(plugins,2); |
| | | ts_fprintf(stdout, "TRISURF in PRVI PLUGIN %s\n", plist->plugin[0]->details->name); |
| | | //printf("%s", plist->chain->at_start->next->plugin->filename); |
| | | //ts_fprintf(stdout, "TRISURF in PRVI PLUGIN %s\n", plist->plugin[0]->details->name); |
| | | ts_vesicle *vesicle; |
| | | ts_tape *tape; |
| | | ts_uint start_iteration=0; |
| | |
| | | ts_fprintf(stdout,"Starting program...\n\n"); |
| | | |
| | | /* Entry point for plugin function at_start() */ |
| | | int i; |
| | | for(i=0; i<plist->n; i++){ |
| | | plist->plugin[i]->function->at_start(argv, argc); |
| | | ts_plugin_chain *ptr=plist->chain->at_start; |
| | | while(ptr!=NULL){ |
| | | ptr->plugin->function->at_start(argv,argc); |
| | | ptr=ptr->next; |
| | | } |
| | | |
| | | if(command_line_args.dump_from_vtk[0]!=0){ |
| | |
| | | |
| | | vesicle->plist=plist; |
| | | /* Entry point for plugin after_vesicle_init() function */ |
| | | for(i=0; i<plist->n; i++){ |
| | | vesicle = plist->plugin[i]->function->after_vesicle_init(vesicle); |
| | | ptr=plist->chain->after_vesicle_init; |
| | | while(ptr!=NULL){ |
| | | ptr->plugin->function->after_vesicle_init(vesicle); |
| | | ptr=ptr->next; |
| | | } |
| | | |
| | | |
| | | run_simulation(vesicle, tape->mcsweeps, tape->inititer, tape->iterations, start_iteration); |
| | | write_master_xml_file(command_line_args.output_fullfilename); |
| | | write_dout_fcompat_file(vesicle,"dout"); |
| | | /* Entry point for plugin cleanup() function */ |
| | | ptr=plist->chain->cleanup; |
| | | while(ptr!=NULL){ |
| | | ptr->plugin->function->cleanup(); |
| | | ptr=ptr->next; |
| | | } |
| | | |
| | | |
| | | vesicle_free(vesicle); |
| | | tape_free(tape); |
| | | return 0; //program finished perfectly ok. We return 0. |