From 15379e118979e23641ddb153fe7bc3fc4fe5ee56 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Thu, 19 Oct 2023 17:43:01 +0800 Subject: [PATCH] __ses_path_va_transistor() --- ses_step_va_transistor.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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; -- 2.25.1