From 5aef32f3bced5ae8d856766959f701a2de2e5a26 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Fri, 6 Oct 2023 16:06:34 +0800 Subject: [PATCH] __ses_path_split_i() --- ses_step_va_diode.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ses_step_va_diode.c b/ses_step_va_diode.c index 10589e4..efd7207 100644 --- a/ses_step_va_diode.c +++ b/ses_step_va_diode.c @@ -28,7 +28,15 @@ void __ses_path_split_i(ScfEfunction* f, ses_path_t* path, int i, int j, double if (cp0->lid != p0->lid || cp1->lid != p1->lid) continue; - ses_split_i(&child->a, &child->ja, la, jla, child->r, child->jr, r, jr); + if (0 == child->n_diodes) { + + ses_ur_i(&child->a, &child->ja, v, jv, child->r, child->jr); + + if (child->a >= la) + ses_split_i(&child->a, &child->ja, la, jla, child->r, child->jr, r, jr); + + } else + ses_split_i(&child->a, &child->ja, la, jla, child->r, child->jr, r, jr); *a -= child->a; *ja -= child->ja; -- 2.25.1