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.
This commit is contained in:
rlar 2012-06-16 13:06:28 +02:00
parent 9648238ed7
commit f661a1032d
2 changed files with 0 additions and 6 deletions

View File

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

View File

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