From: yu.dongliang <18588496441@163.com> Date: Fri, 6 Oct 2023 08:06:34 +0000 (+0800) Subject: __ses_path_split_i() X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=5aef32f3bced5ae8d856766959f701a2de2e5a26;p=ses.git __ses_path_split_i() --- 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;