Trisurf Monte Carlo simulator
Samo Penic
2019-02-28 36dba86649e71d2a56657320ddf98a1af2055023
src/plugins.c
@@ -155,9 +155,17 @@
      if(plist->plugin[i]->function->at_start!=NULL){
         plist->chain->at_start=plugin_to_chain(plist->chain->at_start, plist->plugin[i]);
      }
      if(plist->plugin[i]->function->vm_hard_constraint!=NULL){
         plist->chain->vm_hard_constraint=plugin_to_chain(plist->chain->vm_hard_constraint, plist->plugin[i]);
      }
      if(plist->plugin[i]->function->vm_energy_before_prepare!=NULL){
         plist->chain->vm_energy_before_prepare=plugin_to_chain(plist->chain->vm_energy_before_prepare, plist->plugin[i]);
      }
      if(plist->plugin[i]->function->vm_energy_after_execute!=NULL){
         plist->chain->vm_energy_after_execute=plugin_to_chain(plist->chain->vm_energy_after_execute, plist->plugin[i]);
      }
   }
   //printf("%s", plist->chain->at_start->next->plugin->filename);
   plist->n=number_of_plugins;
   return plist;
}