From 658213f01bc9a14c355d8719c879a07066b66771 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 6 Aug 2011 09:18:46 +0000 Subject: [PATCH] bug fix, tranJob was used instead of pssJob --- ChangeLog | 8 ++++++-- src/frontend/shyu.c | 10 +++++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index d0a8c382a..abf7d446e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,12 @@ -2011-08-05 Robert Larice +2011-08-06 Robert Larice + * src/frontend/shyu.c : + bug fix, tranJob was used instead of pssJob + +2011-08-06 Robert Larice * src/winmain.c : another type fix for Visual Studio, QUIT_BUTTON_ID -2011-08-05 Robert Larice +2011-08-06 Robert Larice * src/spicelib/devices/dev.c : fix broken commit `type fix for Visual Studio' diff --git a/src/frontend/shyu.c b/src/frontend/shyu.c index 99ad703f8..e6ace15f5 100644 --- a/src/frontend/shyu.c +++ b/src/frontend/shyu.c @@ -28,11 +28,7 @@ int if_sens_run(CKTcircuit *ckt, wordlist *args, INPtables *tab) { JOB *senseJob; - JOB *acJob; JOB *opJob; - JOB *dcJob; - JOB *tranJob; - JOB *pssJob; card *current; IFvalue ptemp; IFvalue *parm; @@ -118,6 +114,7 @@ if_sens_run(CKTcircuit *ckt, wordlist *args, INPtables *tab) save = which; INPgetTok(&line,&token,1); if(strcmp(token ,"ac")==0){ + JOB *acJob; which = -1; for(j=0;jnumAnalyses;j++) { if(strcmp(ft_sim->analyses[j]->name,"AC")==0) { @@ -179,6 +176,7 @@ if_sens_run(CKTcircuit *ckt, wordlist *args, INPtables *tab) } } if(strcmp(token ,"dc")==0){ + JOB *dcJob; /* .dc SRC1NAME Vstart1 Vstop1 Vinc1 [SRC2NAME Vstart2 */ /* Vstop2 Vinc2 */ which = -1; @@ -231,6 +229,7 @@ if_sens_run(CKTcircuit *ckt, wordlist *args, INPtables *tab) } } if(strcmp(token ,"tran")==0){ + JOB *tranJob; which = -1; for(j=0;jnumAnalyses;j++) { if(strcmp(ft_sim->analyses[j]->name,"TRAN")==0) { @@ -290,6 +289,7 @@ uic: /* PSS - Spertica - 100910 */ /* *********************** */ if(strcmp(token ,"pss")==0){ + JOB *pssJob; which = -1; for(j=0;jnumAnalyses;j++) { if(strcmp(ft_sim->analyses[j]->name,"PSS")==0) { @@ -299,7 +299,7 @@ uic: } if(which != -1) { err = (*(ft_sim->newAnalysis))(ft_curckt->ci_ckt,which,"pssan", - &(tranJob),ft_curckt->ci_specTask); + &(pssJob),ft_curckt->ci_specTask); if(err) { ft_sperror(err,"createPSS"); return(0);