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.
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.
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).