Duplicate directives in Spice netlist

Bug #1812082 reported by JKB
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Undecided
Unassigned

Bug Description

Hello,

I have seen that netlist generator copies twice spice directives between .control and .endc

For example, I have written in eeschema :

measure tran Vhp RMS v(/Vout) from=100m to=300m
.measure tran Ptriode AVG v(p2a3) from=100m to=300m
.measure tran Vpol AVG v(ac) from=100m to=300m
.measure tran Ipol AVG @r18[i] from=100m to=300m
.control
    run
    write results.raw
    fourier 1k v("/v1out")
    fourier 1k v("/a1")
    fourier 1k v("/a2")
    fourier 1k v("/va")
    fourier 1k v("/vout")
    quit
.endc

and netlist contains :

.measure tran Vhp RMS v(/Vout) from=100m to=300m
.measure tran Ptriode AVG v(p2a3) from=100m to=300m
.measure tran Vpol AVG v(ac) from=100m to=300m
.measure tran Ipol AVG @r18[i] from=100m to=300m
.control
run
run
write results.raw
write results.raw
fourier 1k v("/v1out")
fourier 1k v("/v1out")
fourier 1k v("/a1")
fourier 1k v("/a1")
fourier 1k v("/a2")
fourier 1k v("/a2")
fourier 1k v("/va")
fourier 1k v("/va")
fourier 1k v("/vout")
fourier 1k v("/vout")
quit
quit
.endc
.end

Best regards,

JB

Application: kicad
Version: (5.0.2-14-g4aeef1e09), release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.62.0 GnuTLS/3.6.5 zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0 nghttp2/1.35.1 librtmp/2.3
Platform: Linux 4.18.0-1-amd64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.67.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.62.0
    Compiler: GCC 7.3.0 with C++ ABI 1011
Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_ACTION_MENU=OFF
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Revision history for this message
JKB (joel-bertrand) wrote :

Patch done. Please apply.

Best regards,

JKB

Changed in kicad:
status: New → In Progress
Revision history for this message
JKB (joel-bertrand) wrote :

Sorry, I have done a mistake. Good patch is attached.

Changed in kicad:
status: In Progress → Fix Committed
Revision history for this message
jean-pierre charras (jp-charras) wrote :

I committed your patch. Thanks.
I like bug reports coming with the corresponding patch...

Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.