From: yu.dongliang <18588496441@163.com> Date: Thu, 19 Oct 2023 09:43:01 +0000 (+0800) Subject: __ses_path_va_transistor() X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=15379e118979e23641ddb153fe7bc3fc4fe5ee56;p=ses.git __ses_path_va_transistor() --- diff --git a/ses_step_va_transistor.c b/ses_step_va_transistor.c index 4409be6..da3ecd7 100644 --- a/ses_step_va_transistor.c +++ b/ses_step_va_transistor.c @@ -57,7 +57,7 @@ static int __ses_path_va_transistor(ScfEfunction* f, ses_path_t* path) p1->v = el->v; p1->jv = el->jv; - for (i = 1; i < path->pins->size - 1; i++) { + for (i = 0; i < path->pins->size - 1; i++) { pc = path->pins->data[i]; el = f->elines [pc->lid]; @@ -72,8 +72,6 @@ static int __ses_path_va_transistor(ScfEfunction* f, ses_path_t* path) if (!pc->aconst) continue; - p = path->pins->data[i - 1]; - double v; double jv; @@ -116,6 +114,8 @@ static int __ses_path_va_transistor(ScfEfunction* f, ses_path_t* path) el->a = pc->a; el->ja = pc->ja; #if 0 + p = path->pins->data[i - 1]; + p->v = el->v; p->jv = el->jv; p->a = el->a; @@ -164,9 +164,6 @@ static int ses_path_va_transistor(ScfEfunction* f, ses_path_t* path) p0 = path->pins->data[0]; p1 = path->pins->data[path->pins->size - 1]; - if (p0->lid != Bp->lid || p1->lid != Bn->lid) - return 0; - int ret = __ses_path_va_transistor(f, path); if (ret < 0) return ret;