spinit.in, distinguish between shared and normal mode

This commit is contained in:
h_vogt 2016-11-05 16:48:55 +01:00 committed by rlar
parent 4219f4ddb8
commit 9c5412cb9c
1 changed files with 9 additions and 8 deletions

View File

@ -1,8 +1,7 @@
* Standard ngspice init file
alias exit quit
alias acct rusage all
set x11lineararcs
*setseed 12
*set rndseed=12
** ascii rawfile **
*set filetype=ascii
** frontend debug output **
@ -12,17 +11,19 @@ set x11lineararcs
** set the number of threads in openmp
** default (if compiled with --enable-openmp) is: 2
*set num_threads=4
set interactive
if $?sharedmode
unset interactive
unset moremode
else
set interactive
set x11lineararcs
end
strcmp __flag $program "ngspice"
if $__flag = 0
* For SPICE2 POLYs, edit the below line to point to the location
* of your codemodel.
@XSPICEINIT@ codemodel @pkglibdir@/spice2poly.cm
* The other codemodels
@XSPICEINIT@ codemodel @pkglibdir@/analog.cm
@XSPICEINIT@ codemodel @pkglibdir@/digital.cm
@XSPICEINIT@ codemodel @pkglibdir@/xtradev.cm