Fixed KLU conversion to complex for SP Analysis
This commit is contained in:
parent
287280c3db
commit
419e821a09
|
|
@ -760,6 +760,20 @@ SPan(CKTcircuit* ckt, int restart)
|
|||
else
|
||||
vsrcRoot = ckt->CKTVSRCid;
|
||||
|
||||
#ifdef KLU
|
||||
if (ckt->CKTmatrix->CKTkluMODE)
|
||||
{
|
||||
/* Conversion from Real Matrix to Complex Matrix */
|
||||
if (!ckt->CKTmatrix->SMPkluMatrix->KLUmatrixIsComplex)
|
||||
{
|
||||
for (i = 0 ; i < DEVmaxnum ; i++)
|
||||
if (DEVices [i] && DEVices [i]->DEVbindCSCComplex && ckt->CKThead [i])
|
||||
DEVices [i]->DEVbindCSCComplex (ckt->CKThead [i], ckt) ;
|
||||
|
||||
ckt->CKTmatrix->SMPkluMatrix->KLUmatrixIsComplex = KLUMatrixComplex ;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// Pre-load everything but RF Ports (these will be updated in the next cycle).
|
||||
error = NIspPreload(ckt);
|
||||
|
|
|
|||
Loading…
Reference in New Issue