polish saj's resume fix, use it for `acan' as well

This commit is contained in:
rlar 2011-07-24 17:20:46 +00:00
parent 6613127f7d
commit a3969da827
5 changed files with 20 additions and 22 deletions

View File

@ -1,3 +1,13 @@
2011-07-24 Robert Larice
* src/spicelib/analysis/acan.c ,
* src/spicelib/analysis/dctran.c ,
* src/spicelib/analysis/dctrcurv.c ,
* src/spicelib/analysis/noisean.c :
polish saj's resume fix, use it for `acan' as well
saj's fix was applied 2003-07-23 19:36
avoid (non)-usage of uninitialized variables
FIXME, get rid of the `evil' number `666', find a better solution
2011-07-24 Robert Larice
* src/spicelib/analysis/noisean.c :
bug fix, stepsize in `noisean'

View File

@ -179,11 +179,9 @@ ACan(CKTcircuit *ckt, int restart)
} else { /* continue previous analysis */
freq = ((ACAN*)ckt->CKTcurJob)->ACsaveFreq;
((ACAN*)ckt->CKTcurJob)->ACsaveFreq = 0; /* clear the 'old' frequency */
/* fix resume? saj*/
error = SPfrontEnd->OUTpBeginPlot (ckt,
ckt->CKTcurJob,
ckt->CKTcurJob->JOBname,freqUid,IF_REAL,numNames,nameList,
IF_COMPLEX,&acPlot);
/* fix resume? saj, indeed !*/
error = SPfrontEnd->OUTpBeginPlot
(NULL, NULL, NULL, NULL, 0, 666, NULL, 666, &acPlot);
/* saj*/
}

View File

@ -346,16 +346,9 @@ DCtran(CKTcircuit *ckt,
if(ckt->CKTminBreak==0) ckt->CKTminBreak=ckt->CKTmaxStep*5e-5;
firsttime=0;
/* To get rawfile working saj*/
/* get namelist again */
error = CKTnames(ckt,&numNames,&nameList);
if(error) return(error);
/* get timeUiD again */
SPfrontEnd->IFnewUid (ckt, &timeUid, NULL,
"time", UID_OTHER, NULL);
error = SPfrontEnd->OUTpBeginPlot (ckt, ckt->CKTcurJob,
ckt->CKTcurJob->JOBname,timeUid,IF_REAL,666,nameList,
666,&(((TRANan*)ckt->CKTcurJob)->TRANplot));/* magic 666 nums as flags */
tfree(nameList);
error = SPfrontEnd->OUTpBeginPlot
(NULL, NULL, NULL, NULL, 0, 666, NULL, 666,
&(((TRANan*)ckt->CKTcurJob)->TRANplot));
if(error) {
fprintf(stderr, "Couldn't relink rawfile\n");
return error;

View File

@ -66,9 +66,8 @@ DCtrCurv(CKTcircuit *ckt, int restart)
/* continuing */
i = cv->TRCVnestState;
/* resume to work? saj*/
error = SPfrontEnd->OUTpBeginPlot (ckt,
ckt->CKTcurJob, ckt->CKTcurJob->JOBname,
varUid,IF_REAL,666,nameList, 666,&plot);
error = SPfrontEnd->OUTpBeginPlot
(NULL, NULL, NULL, NULL, 0, 666, NULL, 666, &plot);
goto resume;
}
ckt->CKTtime = 0;

View File

@ -166,10 +166,8 @@ NOISEan (CKTcircuit *ckt, int restart)
data->outNoiz = job->NsavOnoise;
data->inNoise = job->NsavInoise;
/* saj resume rawfile fix*/
error = SPfrontEnd->OUTpBeginPlot (ckt, ckt->CKTcurJob,
"Noise Spectral Density Curves - (V^2 or A^2)/Hz",
freqUid,IF_REAL,666,data->namelist,666,
&(data->NplotPtr));
error = SPfrontEnd->OUTpBeginPlot
(NULL, NULL, NULL, NULL, 0, 666, NULL, 666, &(data->NplotPtr));
/*saj*/
}