Browse Source

re-formatting the code

pre-master-46
Holger Vogt 3 years ago
parent
commit
fd24e5af7e
  1. 10
      src/spicelib/devices/ltra/ltraacct.c

10
src/spicelib/devices/ltra/ltraacct.c

@ -10,10 +10,10 @@ Author: 1990 Jaijeet S. Roychowdhury
#include "ngspice/suffix.h"
int
LTRAaccept(CKTcircuit *ckt, GENmodel *inModel)
LTRAaccept(CKTcircuit* ckt, GENmodel* inModel)
{
LTRAmodel *model = (LTRAmodel *) inModel;
LTRAinstance *here;
LTRAmodel* model = (LTRAmodel*)inModel;
LTRAinstance* here;
double v1, v2, v3, v4;
double v5, v6, d1, d2, d3, d4;
int tmp_test;
@ -32,7 +32,6 @@ LTRAaccept(CKTcircuit *ckt, GENmodel *inModel)
model->LTRAmodelListSize = 10;
LTRAmemMANAGE(model->LTRAh1dashCoeffs, model->LTRAmodelListSize)
LTRAmemMANAGE(model->LTRAh2Coeffs, model->LTRAmodelListSize)
LTRAmemMANAGE(model->LTRAh3dashCoeffs, model->LTRAmodelListSize)
@ -40,7 +39,6 @@ LTRAaccept(CKTcircuit *ckt, GENmodel *inModel)
if (ckt->CKTtimeIndex >= model->LTRAmodelListSize) { /* need more space */
model->LTRAmodelListSize += ckt->CKTsizeIncr;
model->LTRAh1dashCoeffs = TREALLOC(double, model->LTRAh1dashCoeffs, model->LTRAmodelListSize);
model->LTRAh2Coeffs = TREALLOC(double, model->LTRAh2Coeffs, model->LTRAmodelListSize);
model->LTRAh3dashCoeffs = TREALLOC(double, model->LTRAh3dashCoeffs, model->LTRAmodelListSize);
@ -268,7 +266,7 @@ LTRAaccept(CKTcircuit *ckt, GENmodel *inModel)
* compaction
*/
model = (LTRAmodel *) inModel;
model = (LTRAmodel*)inModel;
for (; model != NULL; model = LTRAnextModel(model)) {
for (here = LTRAinstances(model); here != NULL;
here = LTRAnextInstance(here)) {

Loading…
Cancel
Save