SCF_EDA_Capacitor
authoryu.dongliang <18588496441@163.com>
Tue, 14 Nov 2023 06:39:39 +0000 (14:39 +0800)
committeryu.dongliang <18588496441@163.com>
Tue, 14 Nov 2023 06:39:39 +0000 (14:39 +0800)
ses_step_simplify.c
ses_step_topo.c
ses_steps.c
test/main.c

index 534c3fd0f02c07131ff536f2957b0b23c7dfd23a..eef9d82fbd8187f9424d3a59b77e2f976b4dfeb0 100644 (file)
@@ -91,7 +91,7 @@ void __ses_function_draw(ScfEfunction* f, cairo_t* cr)
                                cairo_stroke(cr);
                                break;
 
-                       case SCF_EDA_Inductor:
+                       case SCF_EDA_Capacitor:
                                p = c->pins[SCF_EDA_Battery_POS];
                                cairo_move_to(cr, c->x - 8, c->y - 5);
                                cairo_line_to(cr, c->x + 8, c->y - 5);
index 87b42efbe1b58c779deabaa0aefbf53861af84bf..b13e7dffc3352d9b1944c017a167d8a4ea5b3743 100644 (file)
@@ -896,7 +896,7 @@ static int _topo_handler(ScfEfunction* f, int64_t ns, int64_t count, ses_ctx_t*
        int ret = _topo_paths(f, el, ctx->paths);
        if (ret < 0)
                return ret;
-#if 1
+#if 0
        ret = _topo_path_completes(f, ctx->paths);
        if (ret < 0)
                return ret;
index 044cbc92bcf8c946bf7e101167eb50e19858cc48..204bbab7b4fa979f9735dc2d6e97ebde6dd05495 100644 (file)
@@ -144,7 +144,7 @@ int ses_steps_analyse(ScfEfunction* f, int64_t ns, int64_t count)
                        return ret;
 
                int j;
-               for (j = 0; j < 3; j++) {
+               for (j = 0; j < 1; j++) {
                        printf("\n\033[33m%s(), %d(), j: %d\033[0m\n", __func__, __LINE__, j);
 
                        ret = __ses_steps_analyse(f, ns, i, ctx);
index c38a20b510ab4943834bff94812679df4d40905b..e395d3ef2795222f05d68bfd140f10f644a74df2 100644 (file)
@@ -28,7 +28,7 @@ int main(int argc, char* argv[])
        EDA_INST_ADD_COMPONENT(f, R1, SCF_EDA_Resistor);
        EDA_INST_ADD_COMPONENT(f, R2, SCF_EDA_Resistor);
        EDA_INST_ADD_COMPONENT(f, R3, SCF_EDA_Resistor);
-       EDA_INST_ADD_COMPONENT(f, C0, SCF_EDA_Inductor);
+       EDA_INST_ADD_COMPONENT(f, C0, SCF_EDA_Capacitor);
 
        EDA_PIN_ADD_PIN(B,  SCF_EDA_Battery_POS,  R0, 1);
        EDA_PIN_ADD_PIN(R0, 0,                    R1, 1);