Avoid crash, when sensitivity analysis is called
This commit is contained in:
parent
f307586d89
commit
ca7c6cce71
|
|
@ -162,7 +162,9 @@ int sens_sens(CKTcircuit* ckt, int restart)
|
|||
return error;
|
||||
|
||||
#ifdef KLU
|
||||
delta_Y->SMPkluMatrix->KLUmatrixDiag = NULL;
|
||||
/* FIXME: needs better understanding what makes SMPkluMatrix NULL */
|
||||
if(delta_Y->SMPkluMatrix)
|
||||
delta_Y->SMPkluMatrix->KLUmatrixDiag = NULL;
|
||||
#endif
|
||||
|
||||
// SMPprint(delta_Y, NULL);
|
||||
|
|
|
|||
Loading…
Reference in New Issue