From 0f4d953950b182e353228c651a47080f57e8360e Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Wed, 9 Jun 2021 18:05:42 +0200 Subject: [PATCH] Open mrdump file not in append, but in write mode --- src/maths/sparse/spoutput.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/maths/sparse/spoutput.c b/src/maths/sparse/spoutput.c index dc0832395..9b37ca26d 100644 --- a/src/maths/sparse/spoutput.c +++ b/src/maths/sparse/spoutput.c @@ -604,8 +604,8 @@ spFileVector(MatrixPtr Matrix, char *File, RealVector RHS, RealVector iRHS) assert( IS_SPARSE( Matrix ) && RHS != NULL); if (File) { - /* Open File in append mode. */ - pMatrixFile = fopen(File,"a"); + /* Open File in write mode. */ + pMatrixFile = fopen(File,"w"); if (pMatrixFile == NULL) return 0; }