Menu

#640 doAnalyses: impossible error - can't occur

v1.0 (example)
closed-rejected
None
5
2023-06-23
2023-06-23
simpletk
No

I have triggered error that prints "doAnalyses: impossible error - can't occur", programmers are usually interested in these kinds of errors so if that's the case keep it, if not close it.

* first line is ignored

.subckt MY_SUB a b
L0 a c 10m
R0 c b 100
.ends

xL1 1 0 MY_SUB
xL2 2 0 MY_SUB
K1 xL1.L0 xL2.L0 0.95

.tran 100u 20m 0
.print tran all
.end

Will print

Fatal error: k1: coupling to non-existant inductor xl1.l0.
doAnalyses: impossible error - can't occur

run simulation(s) aborted
Error: .print: no tran analysis found.

ngspice36

Discussion

  • Holger Vogt

    Holger Vogt - 2023-06-23

    This is a bug in your netlist.

    If you load the netlist and then run command 'listing e', you will see that the names of the inductors expanded are L.xL1.L0 and L.xL2.L0.

     

    Last edit: Holger Vogt 2023-06-23
  • Holger Vogt

    Holger Vogt - 2023-06-23
    • status: open --> closed-rejected
    • assigned_to: Holger Vogt
     
  • Holger Vogt

    Holger Vogt - 2023-06-23

    ngspice-40 would tell you:
    doAnalyses: not found

     

Log in to post a comment.