From 6dce43165e054c62b442cac4bffecde77b93dcea Mon Sep 17 00:00:00 2001 From: Richard Kirian Date: Fri, 10 Dec 2010 16:05:48 -0700 Subject: remove old NEWMAT file prior to running mosflm --- src/mosflm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mosflm.c') diff --git a/src/mosflm.c b/src/mosflm.c index 045addae..40780451 100644 --- a/src/mosflm.c +++ b/src/mosflm.c @@ -150,6 +150,9 @@ void run_mosflm(struct image *image, UnitCell *cell) sprintf(mos_cmd,"%sGO\n",mos_cmd); sprintf(mos_cmd,"%s%s",mos_cmd,"eof-mosflm\n"); + /* remove the previous NEWMAT file prior to running mosflm */ + remove(newmatfile); + /* Run the mosflm script */ fail = system(mos_cmd); if (fail) { @@ -165,8 +168,7 @@ void run_mosflm(struct image *image, UnitCell *cell) return; } - /* remove the mosflm NEWMAT file */ - //remove(newmatfile); + return; } -- cgit v1.2.3