Hello all. Question on error/warning on PWL() By...
# ngspice
e
Hello all. Question on error/warning on PWL() By accident today, I happened to set non-increasing time values on a pwl souce:
VX nx GND PWL(0 0 0 0 1m 3.3)
(This happened by accident using parameters, so it wasn't immediately obvious...) This gives me the warning:
Warning : voltage source vx has non-increasing PWL time points.
But... the simulation also crashes:
Copy code
Using KLU as Direct Linear Solver
Note: Starting dynamic gmin stepping
Warning: Dynamic gmin stepping failed
Note: Starting true gmin stepping
Warning: True gmin stepping failed
Note: Starting source stepping
Warning: source stepping failed
Note: Transient op started
Error: Transient op failed, timestep too small
This threw me for a few minutes because I missed the PWL time value warning and I thought I had a convergence problem elsewhere. Interestingly, if I make the second timestep intentionally non-monotonic:
VX nx GND PWL(0 0 -1u 0 1m 3.3)
The simulation actually runs! I would recommend that non-increasing PWL time points actually generate an error. Thoughts? @Holger Vogt