Browse Source

bug fix, ltra and tra, (initial conditions)

reported in
  https://sourceforge.net/tracker/?func=detail&atid=423915&aid=3535544&group_id=38962

bug was introduced in this commit:
  Date:   Wed Dec 31 17:02:46 2003 +0000
  Cleaned up LTRA, TRA and URC code and updated DEVICES file.
rlar 14 years ago
parent
commit
f661a1032d
  1. 3
      src/spicelib/devices/ltra/ltrapar.c
  2. 3
      src/spicelib/devices/tra/traparam.c

3
src/spicelib/devices/ltra/ltrapar.c

@ -39,13 +39,10 @@ LTRAparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select)
switch (value->v.numValue) {
case 4:
here->LTRAinitCur2 = *(value->v.vec.rVec + 3);
break;
case 3:
here->LTRAinitVolt2 = *(value->v.vec.rVec + 2);
break;
case 2:
here->LTRAinitCur1 = *(value->v.vec.rVec + 1);
break;
case 1:
here->LTRAinitVolt1 = *(value->v.vec.rVec);
break;

3
src/spicelib/devices/tra/traparam.c

@ -65,13 +65,10 @@ TRAparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select)
switch(value->v.numValue){
case 4:
here->TRAinitCur2 = *(value->v.vec.rVec+3);
break;
case 3:
here->TRAinitVolt2 = *(value->v.vec.rVec+2);
break;
case 2:
here->TRAinitCur1 = *(value->v.vec.rVec+1);
break;
case 1:
here->TRAinitVolt1 = *(value->v.vec.rVec);
break;

Loading…
Cancel
Save