You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
988 B
48 lines
988 B
/**********
|
|
Copyright 1990 Regents of the University of California. All rights reserved.
|
|
Author: 1985 Thomas L. Quarles
|
|
**********/
|
|
|
|
#include "ngspice/ngspice.h"
|
|
#include "ngspice/ifsim.h"
|
|
#include "ngspice/iferrmsg.h"
|
|
#include "ngspice/trandefs.h"
|
|
#include "ngspice/cktdefs.h"
|
|
|
|
/* ARGSUSED */
|
|
int
|
|
TRANaskQuest(CKTcircuit *ckt, JOB *anal, int which,IFvalue *value)
|
|
{
|
|
TRANan *job = (TRANan *) anal;
|
|
|
|
NG_IGNORE(ckt);
|
|
|
|
switch(which) {
|
|
|
|
case TRAN_TSTOP:
|
|
value->rValue = job->TRANfinalTime;
|
|
break;
|
|
case TRAN_TSTEP:
|
|
value->rValue = job->TRANstep;
|
|
break;
|
|
case TRAN_TSTART:
|
|
value->rValue = job->TRANinitTime;
|
|
break;
|
|
case TRAN_TMAX:
|
|
value->rValue = job->TRANmaxStep;
|
|
break;
|
|
case TRAN_UIC:
|
|
if (job->TRANmode & MODEUIC) {
|
|
value->iValue = 1;
|
|
} else {
|
|
value->iValue = 0;
|
|
}
|
|
break;
|
|
|
|
|
|
default:
|
|
return(E_BADPARM);
|
|
}
|
|
return(OK);
|
|
}
|
|
|