prevent crash if tnode is given but she parameter not

This commit is contained in:
dwarning 2020-06-22 11:52:42 +02:00
parent 9ab20e2f35
commit 03b4a87477
1 changed files with 4 additions and 0 deletions

View File

@ -573,6 +573,10 @@ HICUMsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states)
if (error) return(error);
here->HICUMtempNode = tmp->number;
}
} else {
if (here->HICUMtempNode > 0) { // external temp node is given, but no she parameter
here->HICUMtempNode = 0;
}
}
if(here->HICUMxfNode == 0) {