Menu

#654 I see the vector in "Initial transient solution" but linearize don't see such vector

v1.0 (example)
open-fixed
None
5
2023-12-31
2023-12-31
simpletk
No

I need to call linearize on a vector to do the FFT. I see that vector in Initial transient solution listing but when I try to do the linearize it says such vector does not exists. I used shared spice to print all vectors before the linearize command and the vector is there with the correct name.

* first line is ignored
EOS 1 0 POLY(1) 2 3 0.5 1
V1 2 3 DC 9
R1 2 0 100
R2 3 0 100
.control
tran 100u 1m 0
linearize a$poly$eos#branch_1_0
.endc
.end

Output:

No compatibility mode selected!
Circuit: * first line is ignored
Reducing trtol to 1 for xspice 'A' devices
Doing analysis at TEMP = 27.000000 and TNOM = 27.000000

Initial Transient Solution
--------------------------
Node                                   Voltage
----                                   -------
2                                          4.5
3                                         -4.5
1                                          9.5
v1#branch                               -0.045
a$poly$eos#branch_1_0                        0  <-- vector is here

No. of Data Rows : 59
Error: poly$eos#branch_1_0: no such variable.   <-- but not here
Error: no such vector a
Note: No ".plot", ".print", or ".fourier" lines; no simulations run

I think the $ sign is somehow interfering.

Discussion

  • Holger Vogt

    Holger Vogt - 2023-12-31
    • status: open --> open-accepted
    • assigned_to: Holger Vogt
     
  • Holger Vogt

    Holger Vogt - 2023-12-31

    Thanks for the report.

    Seems to be a bug, which has been there since a long time (also found in ngspice-26).

    I will take care.

     
  • Holger Vogt

    Holger Vogt - 2023-12-31

    There is a fix uploaded to git development branch pre-master-43.

    Indeed this bug must have been there since the beginning of ngspice and its XSPICE integration. So you are probably the first person that after 20 years tries to use the current generated by the E POLY source in a command (like linearize).

     
  • Holger Vogt

    Holger Vogt - 2023-12-31
    • status: open-accepted --> open-fixed
     

Log in to post a comment.