Provide a suitable spinit, if ngspice is started
directly from the Visual Studio Debugger.
This commit is contained in:
parent
45e269819e
commit
5ee1be955c
|
|
@ -22,7 +22,7 @@ copy %cmsrc%\xtraevt.cm %dst%\lib\ngspice\xtraevt.cm
|
||||||
copy %cmsrc%\xtradev.cm %dst%\lib\ngspice\xtradev.cm
|
copy %cmsrc%\xtradev.cm %dst%\lib\ngspice\xtradev.cm
|
||||||
copy %cmsrc%\spice2poly.cm %dst%\lib\ngspice\spice2poly.cm
|
copy %cmsrc%\spice2poly.cm %dst%\lib\ngspice\spice2poly.cm
|
||||||
copy .\spinit_all %dst%\share\ngspice\scripts\spinit
|
copy .\spinit_all %dst%\share\ngspice\scripts\spinit
|
||||||
copy .\spinitd .\spinit
|
copy .\spinitr .\spinit
|
||||||
|
|
||||||
if "%2" == "fftw" goto copy2
|
if "%2" == "fftw" goto copy2
|
||||||
if "%3" == "fftw" goto copy2
|
if "%3" == "fftw" goto copy2
|
||||||
|
|
@ -52,7 +52,7 @@ copy %cmsrc%\xtraevt64.cm %dst%\lib\ngspice\xtraevt.cm
|
||||||
copy %cmsrc%\xtradev64.cm %dst%\lib\ngspice\xtradev.cm
|
copy %cmsrc%\xtradev64.cm %dst%\lib\ngspice\xtradev.cm
|
||||||
copy %cmsrc%\spice2poly64.cm %dst%\lib\ngspice\spice2poly.cm
|
copy %cmsrc%\spice2poly64.cm %dst%\lib\ngspice\spice2poly.cm
|
||||||
copy .\spinit_all %dst%\share\ngspice\scripts\spinit
|
copy .\spinit_all %dst%\share\ngspice\scripts\spinit
|
||||||
copy .\spinitd64 .\spinit
|
copy .\spinitr64 .\spinit
|
||||||
|
|
||||||
if "%2" == "fftw" goto copy2-64
|
if "%2" == "fftw" goto copy2-64
|
||||||
if "%3" == "fftw" goto copy2-64
|
if "%3" == "fftw" goto copy2-64
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,30 @@
|
||||||
|
* Standard ngspice init file
|
||||||
|
alias exit quit
|
||||||
|
alias acct rusage all
|
||||||
|
set x11lineararcs
|
||||||
|
*set rndseed=12
|
||||||
|
** ascii rawfile **
|
||||||
|
set filetype=ascii
|
||||||
|
** frontend debug output **
|
||||||
|
*set ngdebug
|
||||||
|
** asking after quit **
|
||||||
|
*set askquit
|
||||||
|
** set the number of threads in openmp
|
||||||
|
** default (if compiled with --enable-openmp) is: 2
|
||||||
|
set num_threads=4
|
||||||
|
set interactive
|
||||||
|
|
||||||
|
strcmp __flag $program "ngspice"
|
||||||
|
if $__flag = 0
|
||||||
|
|
||||||
|
* Load the codemodels
|
||||||
|
codemodel C:/Spice/lib/ngspice/spice2poly.cm
|
||||||
|
codemodel C:/Spice/lib/ngspice/analog.cm
|
||||||
|
codemodel C:/Spice/lib/ngspice/digital.cm
|
||||||
|
codemodel C:/Spice/lib/ngspice/xtradev.cm
|
||||||
|
codemodel C:/Spice/lib/ngspice/xtraevt.cm
|
||||||
|
codemodel C:/Spice/lib/ngspice/table.cm
|
||||||
|
|
||||||
|
|
||||||
|
end
|
||||||
|
unset __flag
|
||||||
|
|
@ -0,0 +1,30 @@
|
||||||
|
* Standard ngspice init file
|
||||||
|
alias exit quit
|
||||||
|
alias acct rusage all
|
||||||
|
set x11lineararcs
|
||||||
|
*set rndseed=12
|
||||||
|
** ascii rawfile **
|
||||||
|
set filetype=ascii
|
||||||
|
** frontend debug output **
|
||||||
|
*set ngdebug
|
||||||
|
** asking after quit **
|
||||||
|
*set askquit
|
||||||
|
** set the number of threads in openmp
|
||||||
|
** default (if compiled with --enable-openmp) is: 2
|
||||||
|
set num_threads=4
|
||||||
|
set interactive
|
||||||
|
|
||||||
|
strcmp __flag $program "ngspice"
|
||||||
|
if $__flag = 0
|
||||||
|
|
||||||
|
* Load the codemodels
|
||||||
|
codemodel C:/Spice64/lib/ngspice/spice2poly.cm
|
||||||
|
codemodel C:/Spice64/lib/ngspice/analog.cm
|
||||||
|
codemodel C:/Spice64/lib/ngspice/digital.cm
|
||||||
|
codemodel C:/Spice64/lib/ngspice/xtradev.cm
|
||||||
|
codemodel C:/Spice64/lib/ngspice/xtraevt.cm
|
||||||
|
codemodel C:/Spice64/lib/ngspice/table.cm
|
||||||
|
|
||||||
|
|
||||||
|
end
|
||||||
|
unset __flag
|
||||||
Loading…
Reference in New Issue