From 05bc7040607026acc2d39ed5029ac0b2df479a75 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Sat, 28 Oct 2023 22:59:35 +0800 Subject: [PATCH] __ses_path_va_diode() --- ses_step_va_diode.c | 11 ++++++++--- ses_steps.c | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ses_step_va_diode.c b/ses_step_va_diode.c index 877bb19..5af2469 100644 --- a/ses_step_va_diode.c +++ b/ses_step_va_diode.c @@ -250,10 +250,15 @@ static int __ses_path_va_diode(ScfEfunction* f, ses_path_t* path) v -= info->n_diodes * SCF_EDA_V_Diode_ON; v -= info->n_NPNs * SCF_EDA_V_NPN_ON; - r += pj->pr - pj->r - pi->pr; - jr += pj->jpr - pj->jr - pi->jpr; + double _r; + double _jr; - scf_logi("c%ldp%ld--c%ldp%ld, r: %lg, v: %lg\n", pi->cid, pi->id, pj->cid, pj->id, r, v); + __ses_path_pr(f, path, i, info->i, NULL, &_r, &_jr); + + r += _r; + jr += _jr; + + scf_logi("c%ldp%ld--c%ldp%ld, r: %lg, v: %lg, _r: %lg\n", pi->cid, pi->id, pj->cid, pj->id, r, v, _r); i = info->j; } diff --git a/ses_steps.c b/ses_steps.c index 177965d..bf53f4d 100644 --- a/ses_steps.c +++ b/ses_steps.c @@ -141,7 +141,7 @@ int ses_steps_analyse(ScfEfunction* f, int64_t ns, int64_t count) return ret; int j; - for (j = 0; j < 1; j++) { + for (j = 0; j < 3; j++) { printf("\n\033[33m%s(), %d(), j: %d\033[0m\n", __func__, __LINE__, j); ret = __ses_steps_analyse(f, ns, i, ctx); -- 2.25.1