ra3xdh / qucs_s

Qucs-S is a circuit simulation program with Qt-based GUI
https://ra3xdh.github.io/
GNU General Public License v2.0
886 stars 115 forks source link

Wrong steps and number of points in simulation dialogs after #1054 #1077

Closed ivandi69 closed 1 week ago

ivandi69 commented 1 week ago

This transient simulation setup generates wrong netlist with a negative tran step: .tran -0.001 0.001 0 image image AC linear sweep gives wrong number of points ex: 500.95: image Most likely all sweeps are broken. They worked fine since #615

ra3xdh commented 1 week ago

@iwbnwif , Please have a look. Revert an old behavior implemented in #615 if necessary.

iwbnwif commented 1 week ago

Thanks for reporting, I will look into this.

iwbnwif commented 1 week ago

I think this is fixed by #1079, at least for the two reported issues. As far as I can tell, the behavior for both log sweeps and lin sweeps is essentially similar to the production 24.4.1 version; however, there may be some edge cases where the user inputs invalid values for log sweeps.

Also, I notice that the list 'sweeps' do not work properly in 24.4.1 or the new component dialog. Those problems are not addressed by this fix and I will open a separate issue after more investigation.