mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-28 16:54:20 +02:00
Fix for show command when issued before any analysis.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user