mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 05:47:42 +02:00
fix HICUM csu readin
This commit is contained in:
@@ -253,7 +253,9 @@ HICUMmParam(int param, IFvalue *value, GENmodel *inModel)
|
|||||||
model->HICUMrsuGiven = TRUE;
|
model->HICUMrsuGiven = TRUE;
|
||||||
break;
|
break;
|
||||||
case HICUM_MOD_CSU:
|
case HICUM_MOD_CSU:
|
||||||
break; //todo
|
model->HICUMcsu = value->rValue;
|
||||||
|
model->HICUMcsuGiven = TRUE;
|
||||||
|
break;
|
||||||
|
|
||||||
//Depletion Capacitances
|
//Depletion Capacitances
|
||||||
case HICUM_MOD_CJEI0:
|
case HICUM_MOD_CJEI0:
|
||||||
|
|||||||
@@ -2962,7 +2962,6 @@ load:
|
|||||||
rhs_current = model->HICUMtype * (*(ckt->CKTstate0 + here->HICUMcqbcpar2) - Vbpci * gqbcpar2);
|
rhs_current = model->HICUMtype * (*(ckt->CKTstate0 + here->HICUMcqbcpar2) - Vbpci * gqbcpar2);
|
||||||
*(ckt->CKTrhs + here->HICUMbaseBPNode) += -rhs_current;
|
*(ckt->CKTrhs + here->HICUMbaseBPNode) += -rhs_current;
|
||||||
*(ckt->CKTrhs + here->HICUMcollCINode) += rhs_current;
|
*(ckt->CKTrhs + here->HICUMcollCINode) += rhs_current;
|
||||||
//*(ckt->CKTrhs + here->HICUMsubsSINode) += rhs_current; //Markus:??
|
|
||||||
// with respect to Vbpci
|
// with respect to Vbpci
|
||||||
*(here->HICUMbaseBPBaseBPPtr) += gqbcpar2;
|
*(here->HICUMbaseBPBaseBPPtr) += gqbcpar2;
|
||||||
*(here->HICUMcollCICollCIPtr) += gqbcpar2;
|
*(here->HICUMcollCICollCIPtr) += gqbcpar2;
|
||||||
|
|||||||
Reference in New Issue
Block a user