only whitespaces

This commit is contained in:
dwarning 2013-05-01 23:33:22 +02:00
parent b7ce5adfbf
commit 5495f7c293
1 changed files with 24 additions and 24 deletions

View File

@ -36,8 +36,8 @@ REStemp(GENmodel *inModel, CKTcircuit *ckt)
if(!model->REStc2Given) model->REStempCoeff2 = 0.0; if(!model->REStc2Given) model->REStempCoeff2 = 0.0;
if(!model->RESnarrowGiven) model->RESnarrow = 0.0; if(!model->RESnarrowGiven) model->RESnarrow = 0.0;
if(!model->RESshortGiven) model->RESshort = 0.0; if(!model->RESshortGiven) model->RESshort = 0.0;
if(!model->RESfNcoefGiven) model->RESfNcoef = 0.0; if(!model->RESfNcoefGiven) model->RESfNcoef = 0.0;
if(!model->RESfNexpGiven) model->RESfNexp = 1.0; if(!model->RESfNexpGiven) model->RESfNexp = 1.0;
/* loop through all the instances of the model */ /* loop through all the instances of the model */
for (here = model->RESinstances; here != NULL ; for (here = model->RESinstances; here != NULL ;
@ -45,19 +45,19 @@ REStemp(GENmodel *inModel, CKTcircuit *ckt)
/* Default Value Processing for Resistor Instance */ /* Default Value Processing for Resistor Instance */
if(!here->REStempGiven) { if(!here->REStempGiven) {
here->REStemp = ckt->CKTtemp; here->REStemp = ckt->CKTtemp;
if(!here->RESdtempGiven) here->RESdtemp = 0.0; if(!here->RESdtempGiven) here->RESdtemp = 0.0;
} else { /* REStempGiven */ } else { /* REStempGiven */
here->RESdtemp = 0.0; here->RESdtemp = 0.0;
if (here->RESdtempGiven) if (here->RESdtempGiven)
printf("%s: Instance temperature specified, dtemp ignored\n", here->RESname); printf("%s: Instance temperature specified, dtemp ignored\n", here->RESname);
} }
if(!here->RESwidthGiven) here->RESwidth = model->RESdefWidth; if(!here->RESwidthGiven) here->RESwidth = model->RESdefWidth;
if(!here->RESlengthGiven) here->RESlength = 0.0; if(!here->RESlengthGiven) here->RESlength = 0.0;
if(!here->RESscaleGiven) here->RESscale = 1.0; if(!here->RESscaleGiven) here->RESscale = 1.0;
if(!here->RESmGiven) here->RESm = 1.0; if(!here->RESmGiven) here->RESm = 1.0;
if(!here->RESnoisyGiven) here->RESnoisy = 1; if(!here->RESnoisyGiven) here->RESnoisy = 1;
if(!here->RESresGiven) { if(!here->RESresGiven) {
if(model->RESsheetResGiven && (model->RESsheetRes != 0) && if(model->RESsheetResGiven && (model->RESsheetRes != 0) &&
@ -73,19 +73,19 @@ REStemp(GENmodel *inModel, CKTcircuit *ckt)
difference = (here->REStemp + here->RESdtemp) - model->REStnom; difference = (here->REStemp + here->RESdtemp) - model->REStnom;
factor = 1.0 + (model->REStempCoeff1)*difference + factor = 1.0 + (model->REStempCoeff1)*difference +
(model->REStempCoeff2)*difference*difference; (model->REStempCoeff2)*difference*difference;
here -> RESconduct = (1.0/(here->RESresist * factor * here->RESscale)); here -> RESconduct = (1.0/(here->RESresist * factor * here->RESscale));
/* Paolo Nenzi: AC value */ /* Paolo Nenzi: AC value */
if(here->RESacresGiven) if(here->RESacresGiven)
here->RESacConduct = (1.0/(here->RESacResist * factor * here->RESscale)); here->RESacConduct = (1.0/(here->RESacResist * factor * here->RESscale));
else { else {
here -> RESacConduct = here -> RESconduct; here -> RESacConduct = here -> RESconduct;
here -> RESacResist = here -> RESresist; here -> RESacResist = here -> RESresist;
} }
} }
} }
return(OK); return(OK);