From 3a36ab15bf7279ba3d590e04125c0e839495eb65 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sat, 5 Nov 2016 16:48:55 +0100 Subject: [PATCH] spinit.in, distinguish between shared and normal mode --- src/spinit.in | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/spinit.in b/src/spinit.in index 2ca7e3d1e..26a3ca9dc 100644 --- a/src/spinit.in +++ b/src/spinit.in @@ -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,22 +11,23 @@ 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 @XSPICEINIT@ codemodel @pkglibdir@/xtraevt.cm -@XSPICEINIT@ codemodel @pkglibdir@/table.cm end unset __flag