#225 Failed simulation when using "source" multiple times

frontend (66)

When more than one simulations are ran without restarting ngspice, sometimes the later simulations fail to converge or return different results than when run alone.

Steps to repdroduce:

- Go to ngspice root directory and start ngspice.
- Type "source examples/TransmissionLines/cpl1_4_line.sp".
- Without restarting type: "source examples/TransmissionLines/cpl2_2_line.sp".
- Second simulation fails (doAnalyses: iteration limit reached), but it works correctly when run alone.

I have traced this bug to line 165 in frontend/spiceif.c. Uncommenting the "INPkillMods()" line fixes the bug.

This bug was introduced in commit 99b167b272027aabe4cbee573e4b7a87de63f69d "correct alter of mos geometries for binned models".


  • Dietmar Warning

    Dietmar Warning - 2012-12-15

    Thanks Henrik for the report and the proposed fix.
    We must look for a way to differentiate on this place between "alter" and "source".

  • Dietmar Warning

    Dietmar Warning - 2012-12-20

    Reactivate and move the modtab delete after the eventloop should now allow further re-source and alter of binned mos models.

  • Dietmar Warning

    Dietmar Warning - 2012-12-20
    • assigned_to: nobody --> dwarning
    • status: open --> closed-fixed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks