From 620ba72765eda244ca3f3806b8ad709929e74b3c Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Thu, 21 Jun 2018 10:50:23 +0000 Subject: [PATCH] Isak's proposal for stretching energy calculation, take 1 --- src/io.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/io.c b/src/io.c index 82339cf..3ea3662 100644 --- a/src/io.c +++ b/src/io.c @@ -980,8 +980,10 @@ if(vesicle->tape->stretchswitch==1){ fprintf(fh,"<DataArray type=\"Float64\" Name=\"stretching_energy\" format=\"ascii\">"); - for(i=0;i<blist->n+monono*polyno+filno*(fonono-1) -;i++){ + for(i=0;i<blist->n;i++){ + fprintf(fh, "0.0 "); + } + for(i=0;i<monono*polyno+filno*(fonono-1);i++){ fprintf(fh,"0.0 "); } for(i=0;i<vesicle->tlist->n;i++){ -- Gitblit v1.9.3