re-formatting the code

This commit is contained in:
Holger Vogt 2023-05-26 12:16:55 +02:00
parent d295fe3ac6
commit fd24e5af7e
1 changed files with 245 additions and 247 deletions

View File

@ -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)) {