From f2352d715258b0d7753156d4fee4b090393d2cf4 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Thu, 19 Oct 2023 16:32:30 +0800 Subject: [PATCH] tmp --- ses_step_va_transistor.c | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/ses_step_va_transistor.c b/ses_step_va_transistor.c index 7b5d1e4..f1ee3e0 100644 --- a/ses_step_va_transistor.c +++ b/ses_step_va_transistor.c @@ -50,14 +50,6 @@ static int __ses_path_va_transistor(ScfEfunction* f, ses_path_t* path) p1->v = el->v; p1->jv = el->jv; - double v; - double jv; - - double pr; - double jpr; - double sr; - double jsr; - for (i = 1; i < path->pins->size - 1; i++) { pc = path->pins->data[i]; @@ -75,12 +67,15 @@ static int __ses_path_va_transistor(ScfEfunction* f, ses_path_t* path) p = path->pins->data[i - 1]; + double v; + double jv; + + double pr; + double jpr; + pr = p->pr - p0->pr; jpr = p->jpr - p0->jpr; - sr = p->sr - p0->sr; - jsr = p->jsr - p0->jsr; - ses_ir_u(&v, &jv, pc->a, pc->ja, pr, jpr); pc->v = p0->v - v; @@ -123,8 +118,8 @@ static int __ses_path_va_transistor(ScfEfunction* f, ses_path_t* path) __ses_path_dr_transistor(f, path, i, path->pins->size - 1); - scf_loge("i: %d, c%ldp%ld--c%ldp%ld, v: %lg, pc->v: %lg, pc->a: %lg, pr: %lg, sr: %lg, pc->dr: %lg\n", - i, p0->cid, p0->id, pc->cid, pc->id, v, pc->v, pc->a, pr, sr, pc->dr); + scf_loge("i: %d, c%ldp%ld--c%ldp%ld, v: %lg, pc->v: %lg, pc->a: %lg, pr: %lg, pc->dr: %lg\n", + i, p0->cid, p0->id, pc->cid, pc->id, v, pc->v, pc->a, pr, pc->dr); } return 0; -- 2.25.1