up, whitespace

This commit is contained in:
rlar 2016-06-12 21:52:23 +02:00
parent 97f8380f02
commit 6ff9f1eecc
11 changed files with 99 additions and 102 deletions

View File

@ -546,24 +546,21 @@ int sens_sens(CKTcircuit *ckt, int restart)
if (is_dc) {
if (job->output_volt)
output_values[n] = delta_I
[job->output_pos->number]
- delta_I
[job->output_neg->number];
output_values[n] =
delta_I [job->output_pos->number]
- delta_I [job->output_neg->number];
else {
output_values[n] = delta_I[branch_eq];
}
output_values[n] /= delta_var;
} else {
if (job->output_volt) {
output_cvalues[n].real = delta_I
[job->output_pos->number]
- delta_I
[job->output_neg->number];
output_cvalues[n].imag = delta_iI
[job->output_pos->number]
- delta_iI
[job->output_neg->number];
output_cvalues[n].real =
delta_I [job->output_pos->number]
- delta_I [job->output_neg->number];
output_cvalues[n].imag =
delta_iI [job->output_pos->number]
- delta_iI [job->output_neg->number];
} else {
output_cvalues[n].real =
delta_I[branch_eq];

View File

@ -38,7 +38,7 @@ B3SOIDDbindCSC (GENmodel *inModel, CKTcircuit *ckt)
/* loop through all the instances of the model */
for (here = model->B3SOIDDinstances ; here != NULL ; here = here->B3SOIDDnextInstance)
{
if ((model->B3SOIDDshMod == 1) && (here->B3SOIDDrth0!=0.0))
if ((model->B3SOIDDshMod == 1) && (here->B3SOIDDrth0 != 0.0))
{
if ((here-> B3SOIDDtempNode != 0) && (here-> B3SOIDDtempNode != 0))
{
@ -128,7 +128,7 @@ B3SOIDDbindCSC (GENmodel *inModel, CKTcircuit *ckt)
here->B3SOIDDBtempPtr = matched->CSC ;
}
if (here->B3SOIDDbodyMod == 1)
if (here->B3SOIDDbodyMod == 1)
{
if ((here-> B3SOIDDpNode != 0) && (here-> B3SOIDDtempNode != 0))
{
@ -140,10 +140,10 @@ B3SOIDDbindCSC (GENmodel *inModel, CKTcircuit *ckt)
}
}
if (here->B3SOIDDbodyMod == 2)
if (here->B3SOIDDbodyMod == 2)
{
}
else if (here->B3SOIDDbodyMod == 1)
else if (here->B3SOIDDbodyMod == 1)
{
if ((here-> B3SOIDDbNode != 0) && (here-> B3SOIDDpNode != 0))
{
@ -817,7 +817,7 @@ B3SOIDDbindCSCComplex (GENmodel *inModel, CKTcircuit *ckt)
/* loop through all the instances of the model */
for (here = model->B3SOIDDinstances ; here != NULL ; here = here->B3SOIDDnextInstance)
{
if ((model->B3SOIDDshMod == 1) && (here->B3SOIDDrth0!=0.0))
if ((model->B3SOIDDshMod == 1) && (here->B3SOIDDrth0 != 0.0))
{
if ((here-> B3SOIDDtempNode != 0) && (here-> B3SOIDDtempNode != 0))
here->B3SOIDDTemptempPtr = here->B3SOIDDTemptempStructPtr->CSC_Complex ;
@ -852,17 +852,17 @@ B3SOIDDbindCSCComplex (GENmodel *inModel, CKTcircuit *ckt)
if ((here-> B3SOIDDbNode != 0) && (here-> B3SOIDDtempNode != 0))
here->B3SOIDDBtempPtr = here->B3SOIDDBtempStructPtr->CSC_Complex ;
if (here->B3SOIDDbodyMod == 1)
if (here->B3SOIDDbodyMod == 1)
{
if ((here-> B3SOIDDpNode != 0) && (here-> B3SOIDDtempNode != 0))
here->B3SOIDDPtempPtr = here->B3SOIDDPtempStructPtr->CSC_Complex ;
}
}
if (here->B3SOIDDbodyMod == 2)
if (here->B3SOIDDbodyMod == 2)
{
}
else if (here->B3SOIDDbodyMod == 1)
else if (here->B3SOIDDbodyMod == 1)
{
if ((here-> B3SOIDDbNode != 0) && (here-> B3SOIDDpNode != 0))
here->B3SOIDDBpPtr = here->B3SOIDDBpStructPtr->CSC_Complex ;
@ -1131,7 +1131,7 @@ B3SOIDDbindCSCComplexToReal (GENmodel *inModel, CKTcircuit *ckt)
/* loop through all the instances of the model */
for (here = model->B3SOIDDinstances ; here != NULL ; here = here->B3SOIDDnextInstance)
{
if ((model->B3SOIDDshMod == 1) && (here->B3SOIDDrth0!=0.0))
if ((model->B3SOIDDshMod == 1) && (here->B3SOIDDrth0 != 0.0))
{
if ((here-> B3SOIDDtempNode != 0) && (here-> B3SOIDDtempNode != 0))
here->B3SOIDDTemptempPtr = here->B3SOIDDTemptempStructPtr->CSC ;
@ -1166,17 +1166,17 @@ B3SOIDDbindCSCComplexToReal (GENmodel *inModel, CKTcircuit *ckt)
if ((here-> B3SOIDDbNode != 0) && (here-> B3SOIDDtempNode != 0))
here->B3SOIDDBtempPtr = here->B3SOIDDBtempStructPtr->CSC ;
if (here->B3SOIDDbodyMod == 1)
if (here->B3SOIDDbodyMod == 1)
{
if ((here-> B3SOIDDpNode != 0) && (here-> B3SOIDDtempNode != 0))
here->B3SOIDDPtempPtr = here->B3SOIDDPtempStructPtr->CSC ;
}
}
if (here->B3SOIDDbodyMod == 2)
if (here->B3SOIDDbodyMod == 2)
{
}
else if (here->B3SOIDDbodyMod == 1)
else if (here->B3SOIDDbodyMod == 1)
{
if ((here-> B3SOIDDbNode != 0) && (here-> B3SOIDDpNode != 0))
here->B3SOIDDBpPtr = here->B3SOIDDBpStructPtr->CSC ;

View File

@ -38,7 +38,7 @@ B3SOIFDbindCSC (GENmodel *inModel, CKTcircuit *ckt)
/* loop through all the instances of the model */
for (here = model->B3SOIFDinstances ; here != NULL ; here = here->B3SOIFDnextInstance)
{
if ((model->B3SOIFDshMod == 1) && (here->B3SOIFDrth0!=0.0))
if ((model->B3SOIFDshMod == 1) && (here->B3SOIFDrth0 != 0.0))
{
if ((here-> B3SOIFDtempNode != 0) && (here-> B3SOIFDtempNode != 0))
{
@ -128,7 +128,7 @@ B3SOIFDbindCSC (GENmodel *inModel, CKTcircuit *ckt)
here->B3SOIFDBtempPtr = matched->CSC ;
}
if (here->B3SOIFDbodyMod == 1)
if (here->B3SOIFDbodyMod == 1)
{
if ((here-> B3SOIFDpNode != 0) && (here-> B3SOIFDtempNode != 0))
{
@ -140,10 +140,10 @@ B3SOIFDbindCSC (GENmodel *inModel, CKTcircuit *ckt)
}
}
if (here->B3SOIFDbodyMod == 2)
if (here->B3SOIFDbodyMod == 2)
{
}
else if (here->B3SOIFDbodyMod == 1)
else if (here->B3SOIFDbodyMod == 1)
{
if ((here-> B3SOIFDbNode != 0) && (here-> B3SOIFDpNode != 0))
{
@ -753,7 +753,7 @@ B3SOIFDbindCSCComplex (GENmodel *inModel, CKTcircuit *ckt)
/* loop through all the instances of the model */
for (here = model->B3SOIFDinstances ; here != NULL ; here = here->B3SOIFDnextInstance)
{
if ((model->B3SOIFDshMod == 1) && (here->B3SOIFDrth0!=0.0))
if ((model->B3SOIFDshMod == 1) && (here->B3SOIFDrth0 != 0.0))
{
if ((here-> B3SOIFDtempNode != 0) && (here-> B3SOIFDtempNode != 0))
here->B3SOIFDTemptempPtr = here->B3SOIFDTemptempStructPtr->CSC_Complex ;
@ -788,17 +788,17 @@ B3SOIFDbindCSCComplex (GENmodel *inModel, CKTcircuit *ckt)
if ((here-> B3SOIFDbNode != 0) && (here-> B3SOIFDtempNode != 0))
here->B3SOIFDBtempPtr = here->B3SOIFDBtempStructPtr->CSC_Complex ;
if (here->B3SOIFDbodyMod == 1)
if (here->B3SOIFDbodyMod == 1)
{
if ((here-> B3SOIFDpNode != 0) && (here-> B3SOIFDtempNode != 0))
here->B3SOIFDPtempPtr = here->B3SOIFDPtempStructPtr->CSC_Complex ;
}
}
if (here->B3SOIFDbodyMod == 2)
if (here->B3SOIFDbodyMod == 2)
{
}
else if (here->B3SOIFDbodyMod == 1)
else if (here->B3SOIFDbodyMod == 1)
{
if ((here-> B3SOIFDbNode != 0) && (here-> B3SOIFDpNode != 0))
here->B3SOIFDBpPtr = here->B3SOIFDBpStructPtr->CSC_Complex ;
@ -1043,7 +1043,7 @@ B3SOIFDbindCSCComplexToReal (GENmodel *inModel, CKTcircuit *ckt)
/* loop through all the instances of the model */
for (here = model->B3SOIFDinstances ; here != NULL ; here = here->B3SOIFDnextInstance)
{
if ((model->B3SOIFDshMod == 1) && (here->B3SOIFDrth0!=0.0))
if ((model->B3SOIFDshMod == 1) && (here->B3SOIFDrth0 != 0.0))
{
if ((here-> B3SOIFDtempNode != 0) && (here-> B3SOIFDtempNode != 0))
here->B3SOIFDTemptempPtr = here->B3SOIFDTemptempStructPtr->CSC ;
@ -1078,17 +1078,17 @@ B3SOIFDbindCSCComplexToReal (GENmodel *inModel, CKTcircuit *ckt)
if ((here-> B3SOIFDbNode != 0) && (here-> B3SOIFDtempNode != 0))
here->B3SOIFDBtempPtr = here->B3SOIFDBtempStructPtr->CSC ;
if (here->B3SOIFDbodyMod == 1)
if (here->B3SOIFDbodyMod == 1)
{
if ((here-> B3SOIFDpNode != 0) && (here-> B3SOIFDtempNode != 0))
here->B3SOIFDPtempPtr = here->B3SOIFDPtempStructPtr->CSC ;
}
}
if (here->B3SOIFDbodyMod == 2)
if (here->B3SOIFDbodyMod == 2)
{
}
else if (here->B3SOIFDbodyMod == 1)
else if (here->B3SOIFDbodyMod == 1)
{
if ((here-> B3SOIFDbNode != 0) && (here-> B3SOIFDpNode != 0))
here->B3SOIFDBpPtr = here->B3SOIFDBpStructPtr->CSC ;

View File

@ -38,7 +38,7 @@ B3SOIPDbindCSC (GENmodel *inModel, CKTcircuit *ckt)
/* loop through all the instances of the model */
for (here = model->B3SOIPDinstances ; here != NULL ; here = here->B3SOIPDnextInstance)
{
if ((model->B3SOIPDshMod == 1) && (here->B3SOIPDrth0!=0.0))
if ((model->B3SOIPDshMod == 1) && (here->B3SOIPDrth0 != 0.0))
{
if ((here-> B3SOIPDtempNode != 0) && (here-> B3SOIPDtempNode != 0))
{
@ -120,7 +120,7 @@ B3SOIPDbindCSC (GENmodel *inModel, CKTcircuit *ckt)
here->B3SOIPDBtempPtr = matched->CSC ;
}
if (here->B3SOIPDbodyMod == 1)
if (here->B3SOIPDbodyMod == 1)
{
if ((here-> B3SOIPDpNode != 0) && (here-> B3SOIPDtempNode != 0))
{
@ -132,10 +132,10 @@ B3SOIPDbindCSC (GENmodel *inModel, CKTcircuit *ckt)
}
}
if (here->B3SOIPDbodyMod == 2)
if (here->B3SOIPDbodyMod == 2)
{
}
else if (here->B3SOIPDbodyMod == 1)
else if (here->B3SOIPDbodyMod == 1)
{
if ((here-> B3SOIPDbNode != 0) && (here-> B3SOIPDpNode != 0))
{
@ -585,7 +585,7 @@ B3SOIPDbindCSCComplex (GENmodel *inModel, CKTcircuit *ckt)
/* loop through all the instances of the model */
for (here = model->B3SOIPDinstances ; here != NULL ; here = here->B3SOIPDnextInstance)
{
if ((model->B3SOIPDshMod == 1) && (here->B3SOIPDrth0!=0.0))
if ((model->B3SOIPDshMod == 1) && (here->B3SOIPDrth0 != 0.0))
{
if ((here-> B3SOIPDtempNode != 0) && (here-> B3SOIPDtempNode != 0))
here->B3SOIPDTemptempPtr = here->B3SOIPDTemptempStructPtr->CSC_Complex ;
@ -617,17 +617,17 @@ B3SOIPDbindCSCComplex (GENmodel *inModel, CKTcircuit *ckt)
if ((here-> B3SOIPDbNode != 0) && (here-> B3SOIPDtempNode != 0))
here->B3SOIPDBtempPtr = here->B3SOIPDBtempStructPtr->CSC_Complex ;
if (here->B3SOIPDbodyMod == 1)
if (here->B3SOIPDbodyMod == 1)
{
if ((here-> B3SOIPDpNode != 0) && (here-> B3SOIPDtempNode != 0))
here->B3SOIPDPtempPtr = here->B3SOIPDPtempStructPtr->CSC_Complex ;
}
}
if (here->B3SOIPDbodyMod == 2)
if (here->B3SOIPDbodyMod == 2)
{
}
else if (here->B3SOIPDbodyMod == 1)
else if (here->B3SOIPDbodyMod == 1)
{
if ((here-> B3SOIPDbNode != 0) && (here-> B3SOIPDpNode != 0))
here->B3SOIPDBpPtr = here->B3SOIPDBpStructPtr->CSC_Complex ;
@ -812,7 +812,7 @@ B3SOIPDbindCSCComplexToReal (GENmodel *inModel, CKTcircuit *ckt)
/* loop through all the instances of the model */
for (here = model->B3SOIPDinstances ; here != NULL ; here = here->B3SOIPDnextInstance)
{
if ((model->B3SOIPDshMod == 1) && (here->B3SOIPDrth0!=0.0))
if ((model->B3SOIPDshMod == 1) && (here->B3SOIPDrth0 != 0.0))
{
if ((here-> B3SOIPDtempNode != 0) && (here-> B3SOIPDtempNode != 0))
here->B3SOIPDTemptempPtr = here->B3SOIPDTemptempStructPtr->CSC ;
@ -844,17 +844,17 @@ B3SOIPDbindCSCComplexToReal (GENmodel *inModel, CKTcircuit *ckt)
if ((here-> B3SOIPDbNode != 0) && (here-> B3SOIPDtempNode != 0))
here->B3SOIPDBtempPtr = here->B3SOIPDBtempStructPtr->CSC ;
if (here->B3SOIPDbodyMod == 1)
if (here->B3SOIPDbodyMod == 1)
{
if ((here-> B3SOIPDpNode != 0) && (here-> B3SOIPDtempNode != 0))
here->B3SOIPDPtempPtr = here->B3SOIPDPtempStructPtr->CSC ;
}
}
if (here->B3SOIPDbodyMod == 2)
if (here->B3SOIPDbodyMod == 2)
{
}
else if (here->B3SOIPDbodyMod == 1)
else if (here->B3SOIPDbodyMod == 1)
{
if ((here-> B3SOIPDbNode != 0) && (here-> B3SOIPDpNode != 0))
here->B3SOIPDBpPtr = here->B3SOIPDBpStructPtr->CSC ;

View File

@ -417,7 +417,7 @@ BSIM4bindCSC (GENmodel *inModel, CKTcircuit *ckt)
}
}
if ((here->BSIM4rbodyMod ==1) || (here->BSIM4rbodyMod ==2))
if ((here->BSIM4rbodyMod == 1) || (here->BSIM4rbodyMod == 2))
{
if ((here-> BSIM4dNodePrime != 0) && (here-> BSIM4dbNode != 0))
{
@ -771,7 +771,7 @@ BSIM4bindCSCComplex (GENmodel *inModel, CKTcircuit *ckt)
here->BSIM4BPgmPtr = here->BSIM4BPgmStructPtr->CSC_Complex ;
}
if ((here->BSIM4rbodyMod ==1) || (here->BSIM4rbodyMod ==2))
if ((here->BSIM4rbodyMod == 1) || (here->BSIM4rbodyMod == 2))
{
if ((here-> BSIM4dNodePrime != 0) && (here-> BSIM4dbNode != 0))
here->BSIM4DPdbPtr = here->BSIM4DPdbStructPtr->CSC_Complex ;
@ -1010,7 +1010,7 @@ BSIM4bindCSCComplexToReal (GENmodel *inModel, CKTcircuit *ckt)
here->BSIM4BPgmPtr = here->BSIM4BPgmStructPtr->CSC ;
}
if ((here->BSIM4rbodyMod ==1) || (here->BSIM4rbodyMod ==2))
if ((here->BSIM4rbodyMod == 1) || (here->BSIM4rbodyMod == 2))
{
if ((here-> BSIM4dNodePrime != 0) && (here-> BSIM4dbNode != 0))
here->BSIM4DPdbPtr = here->BSIM4DPdbStructPtr->CSC ;

View File

@ -417,7 +417,7 @@ BSIM4v5bindCSC (GENmodel *inModel, CKTcircuit *ckt)
}
}
if ((here->BSIM4v5rbodyMod ==1) || (here->BSIM4v5rbodyMod ==2))
if ((here->BSIM4v5rbodyMod == 1) || (here->BSIM4v5rbodyMod == 2))
{
if ((here-> BSIM4v5dNodePrime != 0) && (here-> BSIM4v5dbNode != 0))
{
@ -771,7 +771,7 @@ BSIM4v5bindCSCComplex (GENmodel *inModel, CKTcircuit *ckt)
here->BSIM4v5BPgmPtr = here->BSIM4v5BPgmStructPtr->CSC_Complex ;
}
if ((here->BSIM4v5rbodyMod ==1) || (here->BSIM4v5rbodyMod ==2))
if ((here->BSIM4v5rbodyMod == 1) || (here->BSIM4v5rbodyMod == 2))
{
if ((here-> BSIM4v5dNodePrime != 0) && (here-> BSIM4v5dbNode != 0))
here->BSIM4v5DPdbPtr = here->BSIM4v5DPdbStructPtr->CSC_Complex ;
@ -1010,7 +1010,7 @@ BSIM4v5bindCSCComplexToReal (GENmodel *inModel, CKTcircuit *ckt)
here->BSIM4v5BPgmPtr = here->BSIM4v5BPgmStructPtr->CSC ;
}
if ((here->BSIM4v5rbodyMod ==1) || (here->BSIM4v5rbodyMod ==2))
if ((here->BSIM4v5rbodyMod == 1) || (here->BSIM4v5rbodyMod == 2))
{
if ((here-> BSIM4v5dNodePrime != 0) && (here-> BSIM4v5dbNode != 0))
here->BSIM4v5DPdbPtr = here->BSIM4v5DPdbStructPtr->CSC ;

View File

@ -417,7 +417,7 @@ BSIM4v6bindCSC (GENmodel *inModel, CKTcircuit *ckt)
}
}
if ((here->BSIM4v6rbodyMod ==1) || (here->BSIM4v6rbodyMod ==2))
if ((here->BSIM4v6rbodyMod == 1) || (here->BSIM4v6rbodyMod == 2))
{
if ((here-> BSIM4v6dNodePrime != 0) && (here-> BSIM4v6dbNode != 0))
{
@ -771,7 +771,7 @@ BSIM4v6bindCSCComplex (GENmodel *inModel, CKTcircuit *ckt)
here->BSIM4v6BPgmPtr = here->BSIM4v6BPgmStructPtr->CSC_Complex ;
}
if ((here->BSIM4v6rbodyMod ==1) || (here->BSIM4v6rbodyMod ==2))
if ((here->BSIM4v6rbodyMod == 1) || (here->BSIM4v6rbodyMod == 2))
{
if ((here-> BSIM4v6dNodePrime != 0) && (here-> BSIM4v6dbNode != 0))
here->BSIM4v6DPdbPtr = here->BSIM4v6DPdbStructPtr->CSC_Complex ;
@ -1010,7 +1010,7 @@ BSIM4v6bindCSCComplexToReal (GENmodel *inModel, CKTcircuit *ckt)
here->BSIM4v6BPgmPtr = here->BSIM4v6BPgmStructPtr->CSC ;
}
if ((here->BSIM4v6rbodyMod ==1) || (here->BSIM4v6rbodyMod ==2))
if ((here->BSIM4v6rbodyMod == 1) || (here->BSIM4v6rbodyMod == 2))
{
if ((here-> BSIM4v6dNodePrime != 0) && (here-> BSIM4v6dbNode != 0))
here->BSIM4v6DPdbPtr = here->BSIM4v6DPdbStructPtr->CSC ;

View File

@ -417,7 +417,7 @@ BSIM4v7bindCSC (GENmodel *inModel, CKTcircuit *ckt)
}
}
if ((here->BSIM4v7rbodyMod ==1) || (here->BSIM4v7rbodyMod ==2))
if ((here->BSIM4v7rbodyMod == 1) || (here->BSIM4v7rbodyMod == 2))
{
if ((here-> BSIM4v7dNodePrime != 0) && (here-> BSIM4v7dbNode != 0))
{
@ -771,7 +771,7 @@ BSIM4v7bindCSCComplex (GENmodel *inModel, CKTcircuit *ckt)
here->BSIM4v7BPgmPtr = here->BSIM4v7BPgmStructPtr->CSC_Complex ;
}
if ((here->BSIM4v7rbodyMod ==1) || (here->BSIM4v7rbodyMod ==2))
if ((here->BSIM4v7rbodyMod == 1) || (here->BSIM4v7rbodyMod == 2))
{
if ((here-> BSIM4v7dNodePrime != 0) && (here-> BSIM4v7dbNode != 0))
here->BSIM4v7DPdbPtr = here->BSIM4v7DPdbStructPtr->CSC_Complex ;
@ -1010,7 +1010,7 @@ BSIM4v7bindCSCComplexToReal (GENmodel *inModel, CKTcircuit *ckt)
here->BSIM4v7BPgmPtr = here->BSIM4v7BPgmStructPtr->CSC ;
}
if ((here->BSIM4v7rbodyMod ==1) || (here->BSIM4v7rbodyMod ==2))
if ((here->BSIM4v7rbodyMod == 1) || (here->BSIM4v7rbodyMod == 2))
{
if ((here-> BSIM4v7dNodePrime != 0) && (here-> BSIM4v7dbNode != 0))
here->BSIM4v7DPdbPtr = here->BSIM4v7DPdbStructPtr->CSC ;

View File

@ -38,7 +38,7 @@ B4SOIbindCSC (GENmodel *inModel, CKTcircuit *ckt)
/* loop through all the instances of the model */
for (here = model->B4SOIinstances ; here != NULL ; here = here->B4SOInextInstance)
{
if ((model->B4SOIshMod == 1) && (here->B4SOIrth0!=0.0))
if ((model->B4SOIshMod == 1) && (here->B4SOIrth0 != 0.0))
{
if ((here-> B4SOItempNode != 0) && (here-> B4SOItempNode != 0))
{
@ -120,7 +120,7 @@ B4SOIbindCSC (GENmodel *inModel, CKTcircuit *ckt)
here->B4SOIBtempPtr = matched->CSC ;
}
if (here->B4SOIbodyMod == 1)
if (here->B4SOIbodyMod == 1)
{
if ((here-> B4SOIpNode != 0) && (here-> B4SOItempNode != 0))
{
@ -131,7 +131,7 @@ B4SOIbindCSC (GENmodel *inModel, CKTcircuit *ckt)
}
}
if (here->B4SOIsoiMod != 0)
if (here->B4SOIsoiMod != 0)
{
if ((here-> B4SOItempNode != 0) && (here-> B4SOIeNode != 0))
{
@ -143,10 +143,10 @@ B4SOIbindCSC (GENmodel *inModel, CKTcircuit *ckt)
}
}
if (here->B4SOIbodyMod == 2)
if (here->B4SOIbodyMod == 2)
{
}
else if (here->B4SOIbodyMod == 1)
else if (here->B4SOIbodyMod == 1)
{
if ((here-> B4SOIbNode != 0) && (here-> B4SOIpNode != 0))
{
@ -231,7 +231,7 @@ B4SOIbindCSC (GENmodel *inModel, CKTcircuit *ckt)
here->B4SOIGEspPtr = matched->CSC ;
}
if (here->B4SOIsoiMod !=2)
if (here->B4SOIsoiMod != 2)
{
if ((here-> B4SOIgNodeExt != 0) && (here-> B4SOIbNode != 0))
{
@ -282,7 +282,7 @@ B4SOIbindCSC (GENmodel *inModel, CKTcircuit *ckt)
here->B4SOIGMspPtr = matched->CSC ;
}
if (here->B4SOIsoiMod !=2)
if (here->B4SOIsoiMod != 2)
{
if ((here-> B4SOIgNodeMid != 0) && (here-> B4SOIbNode != 0))
{
@ -718,7 +718,7 @@ B4SOIbindCSC (GENmodel *inModel, CKTcircuit *ckt)
here->B4SOISgPtr = matched->CSC ;
}
if (model->B4SOIsoiMod != 2)
if (model->B4SOIsoiMod != 2)
{
if ((here-> B4SOIdNode != 0) && (here-> B4SOIbNode != 0))
{
@ -913,7 +913,7 @@ B4SOIbindCSCComplex (GENmodel *inModel, CKTcircuit *ckt)
/* loop through all the instances of the model */
for (here = model->B4SOIinstances ; here != NULL ; here = here->B4SOInextInstance)
{
if ((model->B4SOIshMod == 1) && (here->B4SOIrth0!=0.0))
if ((model->B4SOIshMod == 1) && (here->B4SOIrth0 != 0.0))
{
if ((here-> B4SOItempNode != 0) && (here-> B4SOItempNode != 0))
here->B4SOITemptempPtr = here->B4SOITemptempStructPtr->CSC_Complex ;
@ -945,23 +945,23 @@ B4SOIbindCSCComplex (GENmodel *inModel, CKTcircuit *ckt)
if ((here-> B4SOIbNode != 0) && (here-> B4SOItempNode != 0))
here->B4SOIBtempPtr = here->B4SOIBtempStructPtr->CSC_Complex ;
if (here->B4SOIbodyMod == 1)
if (here->B4SOIbodyMod == 1)
{
if ((here-> B4SOIpNode != 0) && (here-> B4SOItempNode != 0))
here->B4SOIPtempPtr = here->B4SOIPtempStructPtr->CSC_Complex ;
}
if (here->B4SOIsoiMod != 0)
if (here->B4SOIsoiMod != 0)
{
if ((here-> B4SOItempNode != 0) && (here-> B4SOIeNode != 0))
here->B4SOITempePtr = here->B4SOITempeStructPtr->CSC_Complex ;
}
}
if (here->B4SOIbodyMod == 2)
if (here->B4SOIbodyMod == 2)
{
}
else if (here->B4SOIbodyMod == 1)
else if (here->B4SOIbodyMod == 1)
{
if ((here-> B4SOIbNode != 0) && (here-> B4SOIpNode != 0))
here->B4SOIBpPtr = here->B4SOIBpStructPtr->CSC_Complex ;
@ -996,7 +996,7 @@ B4SOIbindCSCComplex (GENmodel *inModel, CKTcircuit *ckt)
if ((here-> B4SOIgNodeExt != 0) && (here-> B4SOIsNodePrime != 0))
here->B4SOIGEspPtr = here->B4SOIGEspStructPtr->CSC_Complex ;
if (here->B4SOIsoiMod !=2)
if (here->B4SOIsoiMod != 2)
{
if ((here-> B4SOIgNodeExt != 0) && (here-> B4SOIbNode != 0))
here->B4SOIGEbPtr = here->B4SOIGEbStructPtr->CSC_Complex ;
@ -1017,7 +1017,7 @@ B4SOIbindCSCComplex (GENmodel *inModel, CKTcircuit *ckt)
if ((here-> B4SOIgNodeMid != 0) && (here-> B4SOIsNodePrime != 0))
here->B4SOIGMspPtr = here->B4SOIGMspStructPtr->CSC_Complex ;
if (here->B4SOIsoiMod !=2)
if (here->B4SOIsoiMod != 2)
{
if ((here-> B4SOIgNodeMid != 0) && (here-> B4SOIbNode != 0))
here->B4SOIGMbPtr = here->B4SOIGMbStructPtr->CSC_Complex ;
@ -1188,7 +1188,7 @@ B4SOIbindCSCComplex (GENmodel *inModel, CKTcircuit *ckt)
if ((here-> B4SOIsNode != 0) && (here-> B4SOIgNode != 0))
here->B4SOISgPtr = here->B4SOISgStructPtr->CSC_Complex ;
if (model->B4SOIsoiMod != 2)
if (model->B4SOIsoiMod != 2)
{
if ((here-> B4SOIdNode != 0) && (here-> B4SOIbNode != 0))
here->B4SOIDbPtr = here->B4SOIDbStructPtr->CSC_Complex ;
@ -1278,7 +1278,7 @@ B4SOIbindCSCComplexToReal (GENmodel *inModel, CKTcircuit *ckt)
/* loop through all the instances of the model */
for (here = model->B4SOIinstances ; here != NULL ; here = here->B4SOInextInstance)
{
if ((model->B4SOIshMod == 1) && (here->B4SOIrth0!=0.0))
if ((model->B4SOIshMod == 1) && (here->B4SOIrth0 != 0.0))
{
if ((here-> B4SOItempNode != 0) && (here-> B4SOItempNode != 0))
here->B4SOITemptempPtr = here->B4SOITemptempStructPtr->CSC ;
@ -1310,23 +1310,23 @@ B4SOIbindCSCComplexToReal (GENmodel *inModel, CKTcircuit *ckt)
if ((here-> B4SOIbNode != 0) && (here-> B4SOItempNode != 0))
here->B4SOIBtempPtr = here->B4SOIBtempStructPtr->CSC ;
if (here->B4SOIbodyMod == 1)
if (here->B4SOIbodyMod == 1)
{
if ((here-> B4SOIpNode != 0) && (here-> B4SOItempNode != 0))
here->B4SOIPtempPtr = here->B4SOIPtempStructPtr->CSC ;
}
if (here->B4SOIsoiMod != 0)
if (here->B4SOIsoiMod != 0)
{
if ((here-> B4SOItempNode != 0) && (here-> B4SOIeNode != 0))
here->B4SOITempePtr = here->B4SOITempeStructPtr->CSC ;
}
}
if (here->B4SOIbodyMod == 2)
if (here->B4SOIbodyMod == 2)
{
}
else if (here->B4SOIbodyMod == 1)
else if (here->B4SOIbodyMod == 1)
{
if ((here-> B4SOIbNode != 0) && (here-> B4SOIpNode != 0))
here->B4SOIBpPtr = here->B4SOIBpStructPtr->CSC ;
@ -1361,7 +1361,7 @@ B4SOIbindCSCComplexToReal (GENmodel *inModel, CKTcircuit *ckt)
if ((here-> B4SOIgNodeExt != 0) && (here-> B4SOIsNodePrime != 0))
here->B4SOIGEspPtr = here->B4SOIGEspStructPtr->CSC ;
if (here->B4SOIsoiMod !=2)
if (here->B4SOIsoiMod != 2)
{
if ((here-> B4SOIgNodeExt != 0) && (here-> B4SOIbNode != 0))
here->B4SOIGEbPtr = here->B4SOIGEbStructPtr->CSC ;
@ -1382,7 +1382,7 @@ B4SOIbindCSCComplexToReal (GENmodel *inModel, CKTcircuit *ckt)
if ((here-> B4SOIgNodeMid != 0) && (here-> B4SOIsNodePrime != 0))
here->B4SOIGMspPtr = here->B4SOIGMspStructPtr->CSC ;
if (here->B4SOIsoiMod !=2)
if (here->B4SOIsoiMod != 2)
{
if ((here-> B4SOIgNodeMid != 0) && (here-> B4SOIbNode != 0))
here->B4SOIGMbPtr = here->B4SOIGMbStructPtr->CSC ;
@ -1553,7 +1553,7 @@ B4SOIbindCSCComplexToReal (GENmodel *inModel, CKTcircuit *ckt)
if ((here-> B4SOIsNode != 0) && (here-> B4SOIgNode != 0))
here->B4SOISgPtr = here->B4SOISgStructPtr->CSC ;
if (model->B4SOIsoiMod != 2)
if (model->B4SOIsoiMod != 2)
{
if ((here-> B4SOIdNode != 0) && (here-> B4SOIbNode != 0))
here->B4SOIDbPtr = here->B4SOIDbStructPtr->CSC ;

View File

@ -214,7 +214,7 @@ HSM2bindCSC (GENmodel *inModel, CKTcircuit *ckt)
here->HSM2SPdpPtr = matched->CSC ;
}
if ( here->HSM2_corg == 1 )
if (here->HSM2_corg == 1)
{
if ((here-> HSM2gNode != 0) && (here-> HSM2gNode != 0))
{
@ -265,7 +265,7 @@ HSM2bindCSC (GENmodel *inModel, CKTcircuit *ckt)
}
}
if ( here->HSM2_corbnet == 1 )
if (here->HSM2_corbnet == 1)
{
if ((here-> HSM2dNodePrime != 0) && (here-> HSM2dbNode != 0))
{
@ -490,7 +490,7 @@ HSM2bindCSCComplex (GENmodel *inModel, CKTcircuit *ckt)
if ((here-> HSM2sNodePrime != 0) && (here-> HSM2dNodePrime != 0))
here->HSM2SPdpPtr = here->HSM2SPdpStructPtr->CSC_Complex ;
if ( here->HSM2_corg == 1 )
if (here->HSM2_corg == 1)
{
if ((here-> HSM2gNode != 0) && (here-> HSM2gNode != 0))
here->HSM2GgPtr = here->HSM2GgStructPtr->CSC_Complex ;
@ -511,7 +511,7 @@ HSM2bindCSCComplex (GENmodel *inModel, CKTcircuit *ckt)
here->HSM2GbpPtr = here->HSM2GbpStructPtr->CSC_Complex ;
}
if ( here->HSM2_corbnet == 1 )
if (here->HSM2_corbnet == 1)
{
if ((here-> HSM2dNodePrime != 0) && (here-> HSM2dbNode != 0))
here->HSM2DPdbPtr = here->HSM2DPdbStructPtr->CSC_Complex ;
@ -651,7 +651,7 @@ HSM2bindCSCComplexToReal (GENmodel *inModel, CKTcircuit *ckt)
if ((here-> HSM2sNodePrime != 0) && (here-> HSM2dNodePrime != 0))
here->HSM2SPdpPtr = here->HSM2SPdpStructPtr->CSC ;
if ( here->HSM2_corg == 1 )
if (here->HSM2_corg == 1)
{
if ((here-> HSM2gNode != 0) && (here-> HSM2gNode != 0))
here->HSM2GgPtr = here->HSM2GgStructPtr->CSC ;
@ -672,7 +672,7 @@ HSM2bindCSCComplexToReal (GENmodel *inModel, CKTcircuit *ckt)
here->HSM2GbpPtr = here->HSM2GbpStructPtr->CSC ;
}
if ( here->HSM2_corbnet == 1 )
if (here->HSM2_corbnet == 1)
{
if ((here-> HSM2dNodePrime != 0) && (here-> HSM2dbNode != 0))
here->HSM2DPdbPtr = here->HSM2DPdbStructPtr->CSC ;

View File

@ -454,7 +454,7 @@ HSMHVbindCSC (GENmodel *inModel, CKTcircuit *ckt)
here->HSMHVGPsPtr = matched->CSC ;
}
if ( here->HSMHVsubNode > 0 )
if (here->HSMHVsubNode > 0)
{
if ((here-> HSMHVdNode != 0) && (here-> HSMHVsubNode != 0))
{
@ -489,7 +489,7 @@ HSMHVbindCSC (GENmodel *inModel, CKTcircuit *ckt)
}
}
if ( here->HSMHV_coselfheat > 0 )
if (here->HSMHV_coselfheat > 0)
{
if ((here-> HSMHVtempNode != 0) && (here-> HSMHVtempNode != 0))
{
@ -612,7 +612,7 @@ HSMHVbindCSC (GENmodel *inModel, CKTcircuit *ckt)
}
}
if ( model->HSMHV_conqs )
if (model->HSMHV_conqs)
{
if ((here-> HSMHVdNodePrime != 0) && (here-> HSMHVqiNode != 0))
{
@ -734,7 +734,7 @@ HSMHVbindCSC (GENmodel *inModel, CKTcircuit *ckt)
here->HSMHVQBqbPtr = matched->CSC ;
}
if ( here->HSMHV_coselfheat > 0 )
if (here->HSMHV_coselfheat > 0)
{
if ((here-> HSMHVqiNode != 0) && (here-> HSMHVtempNode != 0))
{
@ -930,7 +930,7 @@ HSMHVbindCSCComplex (GENmodel *inModel, CKTcircuit *ckt)
if ((here-> HSMHVgNodePrime != 0) && (here-> HSMHVsNode != 0))
here->HSMHVGPsPtr = here->HSMHVGPsStructPtr->CSC_Complex ;
if ( here->HSMHVsubNode > 0 )
if (here->HSMHVsubNode > 0)
{
if ((here-> HSMHVdNode != 0) && (here-> HSMHVsubNode != 0))
here->HSMHVDsubPtr = here->HSMHVDsubStructPtr->CSC_Complex ;
@ -945,7 +945,7 @@ HSMHVbindCSCComplex (GENmodel *inModel, CKTcircuit *ckt)
here->HSMHVSPsubPtr = here->HSMHVSPsubStructPtr->CSC_Complex ;
}
if ( here->HSMHV_coselfheat > 0 )
if (here->HSMHV_coselfheat > 0)
{
if ((here-> HSMHVtempNode != 0) && (here-> HSMHVtempNode != 0))
here->HSMHVTemptempPtr = here->HSMHVTemptempStructPtr->CSC_Complex ;
@ -993,7 +993,7 @@ HSMHVbindCSCComplex (GENmodel *inModel, CKTcircuit *ckt)
here->HSMHVStempPtr = here->HSMHVStempStructPtr->CSC_Complex ;
}
if ( model->HSMHV_conqs )
if (model->HSMHV_conqs)
{
if ((here-> HSMHVdNodePrime != 0) && (here-> HSMHVqiNode != 0))
here->HSMHVDPqiPtr = here->HSMHVDPqiStructPtr->CSC_Complex ;
@ -1040,7 +1040,7 @@ HSMHVbindCSCComplex (GENmodel *inModel, CKTcircuit *ckt)
if ((here-> HSMHVqbNode != 0) && (here-> HSMHVqbNode != 0))
here->HSMHVQBqbPtr = here->HSMHVQBqbStructPtr->CSC_Complex ;
if ( here->HSMHV_coselfheat > 0 )
if (here->HSMHV_coselfheat > 0)
{
if ((here-> HSMHVqiNode != 0) && (here-> HSMHVtempNode != 0))
here->HSMHVQItempPtr = here->HSMHVQItempStructPtr->CSC_Complex ;
@ -1226,7 +1226,7 @@ HSMHVbindCSCComplexToReal (GENmodel *inModel, CKTcircuit *ckt)
if ((here-> HSMHVgNodePrime != 0) && (here-> HSMHVsNode != 0))
here->HSMHVGPsPtr = here->HSMHVGPsStructPtr->CSC ;
if ( here->HSMHVsubNode > 0 )
if (here->HSMHVsubNode > 0)
{
if ((here-> HSMHVdNode != 0) && (here-> HSMHVsubNode != 0))
here->HSMHVDsubPtr = here->HSMHVDsubStructPtr->CSC ;
@ -1241,7 +1241,7 @@ HSMHVbindCSCComplexToReal (GENmodel *inModel, CKTcircuit *ckt)
here->HSMHVSPsubPtr = here->HSMHVSPsubStructPtr->CSC ;
}
if ( here->HSMHV_coselfheat > 0 )
if (here->HSMHV_coselfheat > 0)
{
if ((here-> HSMHVtempNode != 0) && (here-> HSMHVtempNode != 0))
here->HSMHVTemptempPtr = here->HSMHVTemptempStructPtr->CSC ;
@ -1289,7 +1289,7 @@ HSMHVbindCSCComplexToReal (GENmodel *inModel, CKTcircuit *ckt)
here->HSMHVStempPtr = here->HSMHVStempStructPtr->CSC ;
}
if ( model->HSMHV_conqs )
if (model->HSMHV_conqs)
{
if ((here-> HSMHVdNodePrime != 0) && (here-> HSMHVqiNode != 0))
here->HSMHVDPqiPtr = here->HSMHVDPqiStructPtr->CSC ;
@ -1336,7 +1336,7 @@ HSMHVbindCSCComplexToReal (GENmodel *inModel, CKTcircuit *ckt)
if ((here-> HSMHVqbNode != 0) && (here-> HSMHVqbNode != 0))
here->HSMHVQBqbPtr = here->HSMHVQBqbStructPtr->CSC ;
if ( here->HSMHV_coselfheat > 0 )
if (here->HSMHV_coselfheat > 0)
{
if ((here-> HSMHVqiNode != 0) && (here-> HSMHVtempNode != 0))
here->HSMHVQItempPtr = here->HSMHVQItempStructPtr->CSC ;