From 2674335f295ac1edaac3b5455685db0776657e65 Mon Sep 17 00:00:00 2001 From: Miha <miha.fosnaric@fe.uni-lj.si> Date: Wed, 10 Sep 2014 07:25:15 +0000 Subject: [PATCH] Just comment added in tape. --- src/energy.c | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/energy.c b/src/energy.c index 3b1779c..440f319 100644 --- a/src/energy.c +++ b/src/energy.c @@ -19,9 +19,14 @@ return TS_SUCCESS; } -inline ts_bool energy_poly_vertex(ts_vertex *vtx,ts_poly *poly){ - -} + +inline ts_bool bond_energy(ts_bond *bond,ts_poly *poly){ +//TODO: This value to be changed and implemented in data structure: + ts_double d_relaxed=1.0; + bond->energy=poly->k*pow(bond->bond_length-d_relaxed,2); + return TS_SUCCESS; +}; + inline ts_bool energy_vertex(ts_vertex *vtx){ // ts_vertex *vtx=&vlist->vertex[n]-1; // Caution! 0 Indexed value! -- Gitblit v1.9.3