Open mrdump file not in append, but in write mode
This commit is contained in:
parent
273b773280
commit
0f4d953950
|
|
@ -604,8 +604,8 @@ spFileVector(MatrixPtr Matrix, char *File, RealVector RHS, RealVector iRHS)
|
||||||
assert( IS_SPARSE( Matrix ) && RHS != NULL);
|
assert( IS_SPARSE( Matrix ) && RHS != NULL);
|
||||||
|
|
||||||
if (File) {
|
if (File) {
|
||||||
/* Open File in append mode. */
|
/* Open File in write mode. */
|
||||||
pMatrixFile = fopen(File,"a");
|
pMatrixFile = fopen(File,"w");
|
||||||
if (pMatrixFile == NULL)
|
if (pMatrixFile == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue