From 3de2893d882d2c407375146376fbf9bb54f33e8b Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@fe.uni-lj.si> Date: Wed, 30 Apr 2014 13:44:12 +0000 Subject: [PATCH] Constant volume works. CAVEAT: in centermass I had to recalculate all normals of triangles again! This could influence behaviour of the system. --- src/vertexmove.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/vertexmove.c b/src/vertexmove.c index cecb73e..af578e2 100644 --- a/src/vertexmove.c +++ b/src/vertexmove.c @@ -150,7 +150,7 @@ //MONTE CARLOOOOOOOO if(delta_energy>=0){ #ifdef TS_DOUBLE_DOUBLE - if(exp(-delta_energy)< drand48() ) + if(exp(-delta_energy)< drand48()) #endif #ifdef TS_DOUBLE_FLOAT if(expf(-delta_energy)< (ts_float)drand48()) -- Gitblit v1.9.3