From e818ba5bcc461af545665c78157be4e52252aa1c Mon Sep 17 00:00:00 2001 From: Miha <miha.fosnaric@fe.uni-lj.si> Date: Mon, 11 Jul 2016 11:52:30 +0000 Subject: [PATCH] Merge branch 'master' of https://bitbucket.org/samop/trisurf-ng --- src/sh.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/sh.c b/src/sh.c index f5c310a..3f64939 100644 --- a/src/sh.c +++ b/src/sh.c @@ -1,8 +1,10 @@ +/* vim: set ts=4 sts=4 sw=4 noet : */ #include<math.h> #include<stdlib.h> #include "general.h" #include "sh.h" - +#include "io.h" +#include <string.h> ts_spharm *sph_init(ts_vertex_list *vlist, ts_uint l){ @@ -402,8 +404,10 @@ ts_bool saveAvgUlm2(ts_vesicle *vesicle){ FILE *fh; - - fh=fopen("sph2out.dat", "w"); + char filename[10000]; + strcpy(filename, command_line_args.path); + strcat(filename, "sph2out.dat"); + fh=fopen(filename, "w"); if(fh==NULL){ err("Cannot open file %s for writing"); return TS_FAIL; -- Gitblit v1.9.3