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/stretching_energy.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/plugins/stretching_energy.c b/src/plugins/stretching_energy.c index fd44c52..2c537f4 100644 --- a/src/plugins/stretching_energy.c +++ b/src/plugins/stretching_energy.c @@ -2,10 +2,8 @@ #include<math.h> #include "general.h" -#include "vertex.h" -#include "cell.h" -#include "vesicle.h" -#include "frame.h" +#include "energy.h" + char plugin_name[] = "Stretching energy"; char plugin_description[]= "Plugin adds stretching energy to Monte Carlo steps"; char plugin_author[] = "SAMO PENIC"; @@ -58,8 +56,9 @@ stretchenergy(vesicle, vtx->tristar[i]); data->dstretchenergy+=vtx->tristar[i]->energy; } + return data->dstretchenergy; } - return data->dstretchenergy; + return 0.0; } -- Gitblit v1.9.3