Updated SMPprint and SMPprintRHS for KLU, SuperLU and UMFPACK
This commit is contained in:
parent
16ac211b90
commit
005f86a00a
|
|
@ -448,16 +448,31 @@ SMPpreOrder (SMPmatrix *Matrix)
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* SMPprintRHS()
|
||||
*/
|
||||
|
||||
void
|
||||
SMPprintRHS (SMPmatrix *Matrix, char *Filename, RealVector RHS, RealVector iRHS)
|
||||
{
|
||||
if (!Matrix->CKTkluMODE)
|
||||
spFileVector (Matrix->SPmatrix, Filename, RHS, iRHS) ;
|
||||
}
|
||||
|
||||
/*
|
||||
* SMPprint()
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
SMPprint (SMPmatrix *Matrix, FILE *File)
|
||||
{
|
||||
NG_IGNORE (File) ;
|
||||
|
||||
spPrint (Matrix->SPmatrix, 0, 1, 1) ;
|
||||
void
|
||||
SMPprint (SMPmatrix *Matrix, char *Filename)
|
||||
{
|
||||
if (!Matrix->CKTkluMODE)
|
||||
{
|
||||
if (Filename)
|
||||
spFileMatrix (Matrix->SPmatrix, Filename, "Circuit Matrix", 0, 1, 1) ;
|
||||
else
|
||||
spPrint (Matrix->SPmatrix, 0, 1, 1) ;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -416,16 +416,31 @@ SMPpreOrder (SMPmatrix *Matrix)
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* SMPprintRHS()
|
||||
*/
|
||||
|
||||
void
|
||||
SMPprintRHS (SMPmatrix *Matrix, char *Filename, RealVector RHS, RealVector iRHS)
|
||||
{
|
||||
if (!Matrix->CKTsuperluMODE)
|
||||
spFileVector (Matrix->SPmatrix, Filename, RHS, iRHS) ;
|
||||
}
|
||||
|
||||
/*
|
||||
* SMPprint()
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
SMPprint (SMPmatrix *Matrix, FILE *File)
|
||||
{
|
||||
NG_IGNORE (File) ;
|
||||
|
||||
spPrint (Matrix->SPmatrix, 0, 1, 1) ;
|
||||
void
|
||||
SMPprint (SMPmatrix *Matrix, char *Filename)
|
||||
{
|
||||
if (!Matrix->CKTsuperluMODE)
|
||||
{
|
||||
if (Filename)
|
||||
spFileMatrix (Matrix->SPmatrix, Filename, "Circuit Matrix", 0, 1, 1) ;
|
||||
else
|
||||
spPrint (Matrix->SPmatrix, 0, 1, 1) ;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -395,16 +395,31 @@ SMPpreOrder (SMPmatrix *Matrix)
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* SMPprintRHS()
|
||||
*/
|
||||
|
||||
void
|
||||
SMPprintRHS (SMPmatrix *Matrix, char *Filename, RealVector RHS, RealVector iRHS)
|
||||
{
|
||||
if (!Matrix->CKTumfpackMODE)
|
||||
spFileVector (Matrix->SPmatrix, Filename, RHS, iRHS) ;
|
||||
}
|
||||
|
||||
/*
|
||||
* SMPprint()
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
SMPprint (SMPmatrix *Matrix, FILE *File)
|
||||
{
|
||||
NG_IGNORE (File) ;
|
||||
|
||||
spPrint (Matrix->SPmatrix, 0, 1, 1) ;
|
||||
void
|
||||
SMPprint (SMPmatrix *Matrix, char *Filename)
|
||||
{
|
||||
if (!Matrix->CKTumfpackMODE)
|
||||
{
|
||||
if (Filename)
|
||||
spFileMatrix (Matrix->SPmatrix, Filename, "Circuit Matrix", 0, 1, 1) ;
|
||||
else
|
||||
spPrint (Matrix->SPmatrix, 0, 1, 1) ;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -275,7 +275,7 @@ SMPpreOrder(SMPmatrix *Matrix)
|
|||
}
|
||||
|
||||
/*
|
||||
* SMPprint()
|
||||
* SMPprintRHS()
|
||||
*/
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Reference in New Issue