From a98cfcd8cb787a9c329c138967ba60c945c45929 Mon Sep 17 00:00:00 2001 From: dwarning Date: Tue, 5 Dec 2023 10:48:11 +0100 Subject: [PATCH] allow compile w/o NEWCONV defined --- src/spicelib/devices/bsim3v1/b3v1ld.c | 5 ++++- src/spicelib/devices/bsimsoi/b4soild.c | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/spicelib/devices/bsim3v1/b3v1ld.c b/src/spicelib/devices/bsim3v1/b3v1ld.c index 61362a3d0..79629f3eb 100644 --- a/src/spicelib/devices/bsim3v1/b3v1ld.c +++ b/src/spicelib/devices/bsim3v1/b3v1ld.c @@ -121,7 +121,10 @@ double Cgg1, Cgb1, Cgd1, Cbg1, Cbb1, Cbd1, Qac0, Qsub0; double dQac0_dVg, dQac0_dVd, dQac0_dVb, dQsub0_dVg, dQsub0_dVd, dQsub0_dVb; double m = 1.0; - +#ifndef NEWCONV +double tol; +#endif + struct bsim3v1SizeDependParam *pParam; int ByPass, Check, ChargeComputationNeeded = 0, error; diff --git a/src/spicelib/devices/bsimsoi/b4soild.c b/src/spicelib/devices/bsimsoi/b4soild.c index 29e4a7caa..f0379fd3c 100644 --- a/src/spicelib/devices/bsimsoi/b4soild.c +++ b/src/spicelib/devices/bsimsoi/b4soild.c @@ -487,6 +487,9 @@ int B4SOILoadOMP(B4SOIinstance *here, CKTcircuit *ckt) { double eggbcp2, eggdep, agb1, bgb1, agb2, bgb2, agbc2n, agbc2p, bgbc2n, bgbc2p, Vtm00; /* v4.3.1 bugfix for mtrlMod=1 -Tanvir */ double m; +#ifndef NEWCONV + double tol; +#endif #ifndef USE_OMP for (; model != NULL; model = B4SOInextModel(model))