Open mrdump file not in append, but in write mode

This commit is contained in:
Holger Vogt 2021-06-09 18:05:42 +02:00
parent 5f1f40b072
commit a96288f816
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}