| | |
| | | ts_uint cellidx; |
| | | ts_double delta_energy, oenergy; |
| | | ts_double costheta,sintheta,phi,r; |
| | | //This will hold all the information of vtx and its neighbours |
| | | ts_vertex backupvtx[20]; // *constvol_vtx_moved=NULL, *constvol_vtx_backup=NULL; |
| | | ts_vertex backupvtx[20]; |
| | | memcpy((void *)&backupvtx[0],(void *)vtx,sizeof(ts_vertex)); |
| | | |
| | | //random move in a sphere with radius stepsize: |
| | |
| | | } |
| | | |
| | | /* Entry point for plugin vm_energy_before_prepare() */ |
| | | |
| | | vesicle->plist->pointer=vesicle->plist->chain->vm_energy_before_prepare; |
| | | while(vesicle->plist->pointer!=NULL){ |
| | | vesicle->plist->pointer->plugin->function->vm_energy_before_prepare(vesicle, vtx); |
| | |
| | | } |
| | | |
| | | /* Entry point for plugin vm_energy_after_execute() */ |
| | | |
| | | vesicle->plist->pointer=vesicle->plist->chain->vm_energy_after_execute; |
| | | while(vesicle->plist->pointer!=NULL){ |
| | | delta_energy+=vesicle->plist->pointer->plugin->function->vm_energy_after_execute(vesicle, vtx, backupvtx); |