b4v4getic.c, cleanup indentation

This commit is contained in:
h_vogt 2013-05-18 14:57:17 +02:00 committed by rlar
parent e0b56ca877
commit bba1d2f5b9
1 changed files with 19 additions and 20 deletions

View File

@ -17,28 +17,27 @@
int int
BSIM4v4getic( BSIM4v4getic(
GENmodel *inModel, GENmodel *inModel,
CKTcircuit *ckt) CKTcircuit *ckt)
{ {
BSIM4v4model *model = (BSIM4v4model*)inModel; BSIM4v4model *model = (BSIM4v4model*)inModel;
BSIM4v4instance *here; BSIM4v4instance *here;
for (; model ; model = model->BSIM4v4nextModel) for (; model ; model = model->BSIM4v4nextModel) {
{ for (here = model->BSIM4v4instances; here; here = here->BSIM4v4nextInstance) for (here = model->BSIM4v4instances; here; here = here->BSIM4v4nextInstance) {
{ if (!here->BSIM4v4icVDSGiven) {
if (!here->BSIM4v4icVDSGiven) here->BSIM4v4icVDS = *(ckt->CKTrhs + here->BSIM4v4dNode)
{ here->BSIM4v4icVDS = *(ckt->CKTrhs + here->BSIM4v4dNode) - *(ckt->CKTrhs + here->BSIM4v4sNode);
- *(ckt->CKTrhs + here->BSIM4v4sNode); }
} if (!here->BSIM4v4icVGSGiven) {
if (!here->BSIM4v4icVGSGiven) here->BSIM4v4icVGS = *(ckt->CKTrhs + here->BSIM4v4gNodeExt)
{ here->BSIM4v4icVGS = *(ckt->CKTrhs + here->BSIM4v4gNodeExt) - *(ckt->CKTrhs + here->BSIM4v4sNode);
- *(ckt->CKTrhs + here->BSIM4v4sNode); }
} if(!here->BSIM4v4icVBSGiven) {
if(!here->BSIM4v4icVBSGiven) here->BSIM4v4icVBS = *(ckt->CKTrhs + here->BSIM4v4bNode)
{ here->BSIM4v4icVBS = *(ckt->CKTrhs + here->BSIM4v4bNode) - *(ckt->CKTrhs + here->BSIM4v4sNode);
- *(ckt->CKTrhs + here->BSIM4v4sNode); }
} }
}
} }
return(OK); return(OK);
} }