devices/asrc, cleanup #9/9, polish local variables

This commit is contained in:
rlar 2015-04-11 21:29:11 +02:00
parent 21ff522441
commit 7afb450e66
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ ASRCconvTest(GENmodel *inModel, CKTcircuit *ckt)
{
ASRCmodel *model = (ASRCmodel *) inModel;
ASRCinstance *here;
int i, node_num, branch;
int i;
double diff;
double prev;
double tol;
@ -37,10 +37,10 @@ ASRCconvTest(GENmodel *inModel, CKTcircuit *ckt)
for (i = 0; i < here->ASRCtree->numVars; i++)
if (here->ASRCtree->varTypes[i] == IF_INSTANCE) {
branch = CKTfndBranch(ckt, here->ASRCtree->vars[i].uValue);
int branch = CKTfndBranch(ckt, here->ASRCtree->vars[i].uValue);
asrc_vals[i] = ckt->CKTrhsOld[branch];
} else {
node_num = here->ASRCtree->vars[i].nValue->number;
int node_num = here->ASRCtree->vars[i].nValue->number;
asrc_vals[i] = ckt->CKTrhsOld[node_num];
}

View File

@ -14,8 +14,8 @@ Author: 1987 Kanwar Jit Singh
int
ASRCfindBr(CKTcircuit *ckt, GENmodel *inputModel, IFuid name)
{
ASRCinstance *here;
ASRCmodel *model = (ASRCmodel*) inputModel;
ASRCinstance *here;
int error;
CKTnode *tmp;