From f77485b081a41807ae32ade0d17533cf403771c0 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 23 Jul 2016 17:04:10 +0200 Subject: [PATCH] dctrcurv.c, #3/7, express the value of 'i' more verbosely --- src/spicelib/analysis/dctrcurv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/spicelib/analysis/dctrcurv.c b/src/spicelib/analysis/dctrcurv.c index e55b45bcf..17433a610 100644 --- a/src/spicelib/analysis/dctrcurv.c +++ b/src/spicelib/analysis/dctrcurv.c @@ -87,6 +87,7 @@ DCtrCurv(CKTcircuit *ckt, int restart) for (j = 0; j < 7; j++) ckt->CKTdeltaOld[j] = ckt->CKTdelta; + /* i will be job->TRCVnestLevel + 1 when this loop is finished */ for (i = 0; i <= job->TRCVnestLevel; i++) { if (rcode >= 0) { @@ -193,11 +194,11 @@ DCtrCurv(CKTcircuit *ckt, int restart) /* gtri - end - wbk */ #endif - i--; /* PN: This seems to do nothing ??? */ - error = CKTnames(ckt, &numNames, &nameList); if (error) return(error); + i = job->TRCVnestLevel; + if (job->TRCVvType[i] == vcode) SPfrontEnd->IFnewUid (ckt, &varUid, NULL, "v-sweep", UID_OTHER, NULL); else {