devices/asrc, cleanup #9/9, polish local variables
This commit is contained in:
parent
21ff522441
commit
7afb450e66
|
|
@ -15,7 +15,7 @@ ASRCconvTest(GENmodel *inModel, CKTcircuit *ckt)
|
||||||
{
|
{
|
||||||
ASRCmodel *model = (ASRCmodel *) inModel;
|
ASRCmodel *model = (ASRCmodel *) inModel;
|
||||||
ASRCinstance *here;
|
ASRCinstance *here;
|
||||||
int i, node_num, branch;
|
int i;
|
||||||
double diff;
|
double diff;
|
||||||
double prev;
|
double prev;
|
||||||
double tol;
|
double tol;
|
||||||
|
|
@ -37,10 +37,10 @@ ASRCconvTest(GENmodel *inModel, CKTcircuit *ckt)
|
||||||
|
|
||||||
for (i = 0; i < here->ASRCtree->numVars; i++)
|
for (i = 0; i < here->ASRCtree->numVars; i++)
|
||||||
if (here->ASRCtree->varTypes[i] == IF_INSTANCE) {
|
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];
|
asrc_vals[i] = ckt->CKTrhsOld[branch];
|
||||||
} else {
|
} 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];
|
asrc_vals[i] = ckt->CKTrhsOld[node_num];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@ Author: 1987 Kanwar Jit Singh
|
||||||
int
|
int
|
||||||
ASRCfindBr(CKTcircuit *ckt, GENmodel *inputModel, IFuid name)
|
ASRCfindBr(CKTcircuit *ckt, GENmodel *inputModel, IFuid name)
|
||||||
{
|
{
|
||||||
ASRCinstance *here;
|
|
||||||
ASRCmodel *model = (ASRCmodel*) inputModel;
|
ASRCmodel *model = (ASRCmodel*) inputModel;
|
||||||
|
ASRCinstance *here;
|
||||||
int error;
|
int error;
|
||||||
CKTnode *tmp;
|
CKTnode *tmp;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue