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.
52 lines
911 B
52 lines
911 B
/**********
|
|
Copyright 1991 Regents of the University of California. All rights reserved.
|
|
**********/
|
|
|
|
#include "ngspice.h"
|
|
#include "ifsim.h"
|
|
#include "iferrmsg.h"
|
|
#include "cktdefs.h"
|
|
#include "sensdefs.h"
|
|
|
|
|
|
/* ARGSUSED */
|
|
int
|
|
SENSask(CKTcircuit *ckt, void *anal, int which, IFvalue *value)
|
|
{
|
|
SENS_AN *sinfo = (SENS_AN *) anal;
|
|
|
|
switch (which) {
|
|
|
|
case SENS_START:
|
|
value->rValue = sinfo->start_freq;
|
|
break;
|
|
|
|
case SENS_STOP:
|
|
value->rValue = sinfo->stop_freq;
|
|
break;
|
|
|
|
case SENS_STEPS:
|
|
value->iValue = sinfo->n_freq_steps;
|
|
break;
|
|
|
|
case SENS_DEC:
|
|
case SENS_OCT:
|
|
case SENS_LIN:
|
|
case SENS_DC:
|
|
value->iValue = sinfo->step_type == which;
|
|
break;
|
|
|
|
case SENS_DEFTOL:
|
|
sinfo->deftol = value->rValue;
|
|
break;
|
|
|
|
case SENS_DEFPERTURB:
|
|
value->rValue = sinfo->defperturb;
|
|
break;
|
|
|
|
default:
|
|
return(E_BADPARM);
|
|
}
|
|
return(OK);
|
|
}
|
|
|