Merge branch 'pre-master-42' into bt_dev

This commit is contained in:
Brian Taylor 2023-10-05 10:22:13 -07:00
commit a720193335
8 changed files with 5 additions and 11 deletions

View File

@ -52,14 +52,14 @@ if test "$1" = "d"; then
# You may add --enable-adms to the following command for adding adms generated devices # You may add --enable-adms to the following command for adding adms generated devices
# Builtin readline is not compatible (Big Sur), readline via Homebrew required (in /usr/local/opt) # Builtin readline is not compatible (Big Sur), readline via Homebrew required (in /usr/local/opt)
# Use gcc-11 from Homebrew to support OpenMP # Use gcc-11 from Homebrew to support OpenMP
../configure --with-x --enable-xspice --enable-cider --with-readline=/usr/local/opt/readline CC="gcc-11" CXX="g++-11" CFLAGS="-m64 -O0 -g -Wall -I/opt/X11/include/freetype2 -I/usr/local/opt/readline/include" LDFLAGS="-m64 -g -L/usr/local/opt/readline/lib -L/opt/X11/lib" ../configure --with-x --enable-xspice --enable-cider --enable-osdi --with-readline=/usr/local/opt/readline --enable-klu CC="gcc-11" CXX="g++-11" CFLAGS="-m64 -O0 -g -Wall -I/opt/X11/include/freetype2 -I/usr/local/opt/readline/include" LDFLAGS="-m64 -g -L/usr/local/opt/readline/lib -L/opt/X11/lib"
else else
cd release cd release
if [ $? -ne 0 ]; then echo "cd release failed"; exit 1 ; fi if [ $? -ne 0 ]; then echo "cd release failed"; exit 1 ; fi
echo "configuring for 64 bit release" echo "configuring for 64 bit release"
echo echo
# You may add --enable-adms to the following command for adding adms generated devices # You may add --enable-adms to the following command for adding adms generated devices
../configure --with-x --enable-xspice --enable-cider --with-readline=/usr/local/opt/readline --disable-debug --enable-openmp CC="gcc-11" CXX="g++-11" CFLAGS="-m64 -O2 -I/opt/X11/include/freetype2 -I/usr/local/opt/readline/include -I/usr/local/opt/ncurses/include -I/usr/local/include" LDFLAGS="-m64 -L/usr/local/opt/readline/lib -L/usr/local/opt/ncurses/lib -L/opt/X11/lib -L/usr/local/lib" ../configure --with-x --enable-xspice --enable-cider --enable-osdi --with-readline=/usr/local/opt/readline --disable-debug --enable-openmp --enable-klu CC="gcc-11" CXX="g++-11" CFLAGS="-m64 -O2 -I/opt/X11/include/freetype2 -I/usr/local/opt/readline/include -I/usr/local/opt/ncurses/include -I/usr/local/include" LDFLAGS="-m64 -L/usr/local/opt/readline/lib -L/usr/local/opt/ncurses/lib -L/opt/X11/lib -L/usr/local/lib"
fi fi
if [ $? -ne 0 ]; then echo "../configure failed"; exit 1 ; fi if [ $? -ne 0 ]; then echo "../configure failed"; exit 1 ; fi

View File

@ -1010,7 +1010,7 @@ struct card *inp_readall(FILE *fp, const char *dir_name,
cc = rv.cc; cc = rv.cc;
/* skip all pre-processing for expanded input files created by 'listing r' */ /* skip all pre-processing for expanded input files created by 'listing r' */
if (ciprefix("* expanded deck of", cc->line)) if (cc && ciprefix("* expanded deck of", cc->line))
return cc; return cc;
/* files starting with *ng_script are user supplied command files */ /* files starting with *ng_script are user supplied command files */

View File

@ -9,7 +9,8 @@ Author: 1985 Thomas L. Quarles
#include "ngspice/sperror.h" #include "ngspice/sperror.h"
#include "string.h" #include "string.h"
/* Key is the pointer to the device name, not the name itself.
The pointer to the instance is returned. */
GENinstance * GENinstance *
CKTfndDev(CKTcircuit *ckt, IFuid name) CKTfndDev(CKTcircuit *ckt, IFuid name)
{ {

View File

@ -20,7 +20,6 @@ IFparm VCCSpTable[] = { /* parameters */
"Positive node of contr. source"), "Positive node of contr. source"),
OPU("cont_n_node",VCCS_CONT_N_NODE,IF_INTEGER, OPU("cont_n_node",VCCS_CONT_N_NODE,IF_INTEGER,
"Negative node of contr. source"), "Negative node of contr. source"),
IP("ic", VCCS_IC, IF_REAL, "Initial condition of controlling source"),
OP("i", VCCS_CURRENT,IF_REAL, "Output current"), OP("i", VCCS_CURRENT,IF_REAL, "Output current"),
OP("v", VCCS_VOLTS,IF_REAL, "Voltage across output"), OP("v", VCCS_VOLTS,IF_REAL, "Voltage across output"),
OP("p", VCCS_POWER, IF_REAL, "Power"), OP("p", VCCS_POWER, IF_REAL, "Power"),

View File

@ -31,7 +31,6 @@ typedef struct sVCCSinstance {
const int VCCScontPosNode; /* number of positive node of controlling source */ const int VCCScontPosNode; /* number of positive node of controlling source */
const int VCCScontNegNode; /* number of negative node of controlling source */ const int VCCScontNegNode; /* number of negative node of controlling source */
double VCCSinitCond; /* initial condition (of controlling source) */
double VCCScoeff; /* coefficient */ double VCCScoeff; /* coefficient */
double VCCSmValue; /* Parallel multiplier */ double VCCSmValue; /* Parallel multiplier */

View File

@ -18,7 +18,6 @@ IFparm VCVSpTable[] = { /* parameters */
"Positive node of contr. source"), "Positive node of contr. source"),
OPU("cont_n_node",VCVS_CONT_N_NODE,IF_INTEGER, OPU("cont_n_node",VCVS_CONT_N_NODE,IF_INTEGER,
"Negative node of contr. source"), "Negative node of contr. source"),
IP("ic", VCVS_IC, IF_REAL, "Initial condition of controlling source"),
OP("i", VCVS_CURRENT, IF_REAL, "Output current"), OP("i", VCVS_CURRENT, IF_REAL, "Output current"),
OP("v", VCVS_VOLTS, IF_REAL, "Output voltage"), OP("v", VCVS_VOLTS, IF_REAL, "Output voltage"),
OP("p", VCVS_POWER, IF_REAL, "Power"), OP("p", VCVS_POWER, IF_REAL, "Power"),

View File

@ -40,9 +40,6 @@ VCVSask(CKTcircuit *ckt, GENinstance *inst, int which, IFvalue *value, IFvalue *
case VCVS_CONT_N_NODE: case VCVS_CONT_N_NODE:
value->iValue = here->VCVScontNegNode; value->iValue = here->VCVScontNegNode;
return (OK); return (OK);
case VCVS_IC:
value->rValue = here->VCVSinitCond;
return (OK);
case VCVS_GAIN: case VCVS_GAIN:
value->rValue = here->VCVScoeff; value->rValue = here->VCVScoeff;
return (OK); return (OK);

View File

@ -33,7 +33,6 @@ typedef struct sVCVSinstance {
const int VCVScontNegNode; /* number of negative node of controlling source */ const int VCVScontNegNode; /* number of negative node of controlling source */
int VCVSbranch; /* equation number of branch equation added for v source */ int VCVSbranch; /* equation number of branch equation added for v source */
double VCVSinitCond; /* initial condition (of controlling source) */
double VCVScoeff; /* coefficient */ double VCVScoeff; /* coefficient */
double *VCVSposIbrPtr; /* pointer to sparse matrix element at double *VCVSposIbrPtr; /* pointer to sparse matrix element at