diff --git a/src/spicelib/devices/cap/capparam.c b/src/spicelib/devices/cap/capparam.c index 32d1b1b04..1738594f3 100644 --- a/src/spicelib/devices/cap/capparam.c +++ b/src/spicelib/devices/cap/capparam.c @@ -21,6 +21,8 @@ CAPparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select) switch(param) { case CAP_CAP: here->CAPcapac = value->rValue; + if (!here->CAPmGiven) + here->CAPm = 1.0; here->CAPcapGiven = TRUE; break; case CAP_IC: diff --git a/src/spicelib/devices/ind/indparam.c b/src/spicelib/devices/ind/indparam.c index 2f02ed4cc..abda2364a 100644 --- a/src/spicelib/devices/ind/indparam.c +++ b/src/spicelib/devices/ind/indparam.c @@ -20,6 +20,8 @@ INDparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select) switch(param) { case IND_IND: here->INDinduct = value->rValue; + if (!here->INDmGiven) + here->INDm =1.0; here->INDindGiven = TRUE; break; case IND_TEMP: