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;
}
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);