Fix for show command when issued before any analysis.

This commit is contained in:
pnenzi 2004-08-13 10:50:40 +00:00
parent 0abca45825
commit db426c24b1
2 changed files with 4 additions and 0 deletions

View File

@ -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:

View File

@ -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: