From 2c4278db6ead5c27e30a3000097ed898c968534e Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Sat, 09 Mar 2019 19:45:22 +0000
Subject: [PATCH] Added direct force plugin and fixes in stretching energy

---
 src/plugins.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/plugins.c b/src/plugins.c
index a6b843b..3146c2a 100644
--- a/src/plugins.c
+++ b/src/plugins.c
@@ -174,6 +174,9 @@
 		if(plist->plugin[i]->function->vm_new_state_accepted!=NULL){
 			plist->chain->vm_new_state_accepted=plugin_to_chain(plist->chain->vm_new_state_accepted, plist->plugin[i]);
 		}
+		if(plist->plugin[i]->function->vm_new_state_rejected!=NULL){
+			plist->chain->vm_new_state_rejected=plugin_to_chain(plist->chain->vm_new_state_rejected, plist->plugin[i]);
+		}
 	}
 	plist->n=number_of_plugins;
 	return plist;

--
Gitblit v1.9.3