From 5a3862aa5b9c381e228d967fa079642c6b1758c5 Mon Sep 17 00:00:00 2001 From: mihaf <miha.fosnaric@gmail.com> Date: Tue, 27 May 2014 11:15:30 +0000 Subject: [PATCH] Added output of ulm2 for each outer loop. (second time) --- src/energy.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/energy.c b/src/energy.c index abbb8e7..440f319 100644 --- a/src/energy.c +++ b/src/energy.c @@ -20,6 +20,14 @@ } +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! // ts_triangle *tristar=vtx->tristar-1; -- Gitblit v1.9.3