vbic: selfheating switch selft has priority, but keep compatibility
This commit is contained in:
parent
33e17fa969
commit
b5d5cfd543
|
|
@ -487,11 +487,16 @@ VBICsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if((model->VBICthermalResistGiven) && (model->VBICthermalResist > 0.0)
|
if(model->VBICselftGiven)
|
||||||
&& model->VBICselftGiven && model->VBICselft == 1)
|
if(model->VBICselft == 1)
|
||||||
here->VBIC_selfheat = 1;
|
here->VBIC_selfheat = 1;
|
||||||
|
else
|
||||||
|
here->VBIC_selfheat = 0;
|
||||||
else
|
else
|
||||||
here->VBIC_selfheat = 0;
|
if((model->VBICthermalResistGiven) && (model->VBICthermalResist > 0.0))
|
||||||
|
here->VBIC_selfheat = 1;
|
||||||
|
else
|
||||||
|
here->VBIC_selfheat = 0;
|
||||||
|
|
||||||
if((model->VBICthermalResistGiven) && (model->VBICthermalCapacitance < 1e-12))
|
if((model->VBICthermalResistGiven) && (model->VBICthermalCapacitance < 1e-12))
|
||||||
model->VBICthermalCapacitance = 1e-12;
|
model->VBICthermalCapacitance = 1e-12;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue