1 /**********
2 Copyright 1990 Regents of the University of California. All rights reserved.
3 Author: 1985 Thomas L. Quarles
4 **********/
5
6 #include "ngspice/ngspice.h"
7 #include "ngspice/tskdefs.h"
8 #include "ngspice/jobdefs.h"
9 #include "ngspice/cktdefs.h"
10 #include "ngspice/ifsim.h"
11 #include "ngspice/iferrmsg.h"
12
13 #include "analysis.h"
14
15 extern SPICEanalysis *analInfo[];
16
17 /* ARGSUSED */
18 int
CKTaskAnalQ(CKTcircuit * ckt,JOB * analPtr,int parm,IFvalue * value,IFvalue * selector)19 CKTaskAnalQ(CKTcircuit *ckt, JOB *analPtr, int parm, IFvalue *value, IFvalue *selector)
20 {
21 int type = analPtr->JOBtype;
22
23 NG_IGNORE(selector);
24
25 if((analInfo[type]->askQuest) == NULL) return(E_BADPARM);
26 return( analInfo[type]->askQuest (ckt, analPtr, parm, value));
27 }
28