SMPnewMatrix(), add 'size' to the function arguments

This commit is contained in:
rlar 2017-03-17 18:11:54 +01:00
parent 07d89b5fcd
commit fb4f462388
3 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ void SMPcaSolve(SMPmatrix *Matrix, double RHS[], double iRHS[],
void SMPcSolve( SMPmatrix *, double [], double [], double [], double []);
void SMPsolve( SMPmatrix *, double [], double []);
int SMPmatSize( SMPmatrix *);
int SMPnewMatrix( SMPmatrix ** );
int SMPnewMatrix( SMPmatrix **, int );
void SMPdestroy( SMPmatrix *);
int SMPpreOrder( SMPmatrix *);
void SMPprint( SMPmatrix * , char *);

View File

@ -25,5 +25,5 @@ NIinit(CKTcircuit *ckt)
int Error;
#endif /* SPARSE */
ckt->CKTniState = NIUNINITIALIZED;
return(SMPnewMatrix( &(ckt->CKTmatrix) ) );
return SMPnewMatrix(&(ckt->CKTmatrix), 0);
}

View File

@ -249,10 +249,10 @@ SMPmatSize(SMPmatrix *Matrix)
* SMPnewMatrix()
*/
int
SMPnewMatrix(SMPmatrix **pMatrix)
SMPnewMatrix(SMPmatrix **pMatrix, int size)
{
int Error;
*pMatrix = spCreate( 0, 1, &Error );
*pMatrix = spCreate( size, 1, &Error );
return Error;
}