VDMOS return if NIintegrate fails

This commit is contained in:
dwarning 2020-03-15 09:45:50 +01:00 committed by Holger Vogt
parent a850b2a070
commit 7b77a13d3d
1 changed files with 1 additions and 0 deletions

View File

@ -558,6 +558,7 @@ bypass:
if (selfheat)
{
error = NIintegrate(ckt, &gcTt, &ceqqth, 0.0, here->VDMOSqth);
if (error) return(error);
gcTt = model->VDMOScthj * ckt->CKTag[0];
ceqqth = *(ckt->CKTstate0 + here->VDMOScqth) - gcTt * delTemp;
}