From f977e8fe32b6a1a2ae85662ab35fd7c9f647cc3e Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Mon, 02 Jul 2018 10:50:58 +0000 Subject: [PATCH] Added a funciton that calculates everything needed for spherical harmonics --- 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