prevent false outputs of @dev[param], when not defined in ac simulation
This commit is contained in:
parent
fe86d3d5c7
commit
ca8e9b2d2d
|
|
@ -6,6 +6,8 @@
|
|||
#ifndef ERROR_H_INCLUDED
|
||||
#define ERROR_H_INCLUDED
|
||||
|
||||
#include "ngspice/defines.h"
|
||||
|
||||
void controlled_exit(int status);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -244,6 +244,8 @@ ACan(CKTcircuit *ckt, int restart)
|
|||
|
||||
INIT_STATS();
|
||||
|
||||
ckt->CKTcurrentAnalysis = DOING_AC;
|
||||
|
||||
/* main loop through all scheduled frequencies */
|
||||
while (freq <= job->ACstopFreq + freqTol) {
|
||||
if(SPfrontEnd->IFpauseTest()) {
|
||||
|
|
|
|||
|
|
@ -7,12 +7,15 @@ Author: 1985 Thomas L. Quarles
|
|||
*
|
||||
* Ask questions about a specified device. */
|
||||
|
||||
#include "ngspice/ngspice.h"
|
||||
#include "ngspice/config.h"
|
||||
#include "ngspice/devdefs.h"
|
||||
#include "ngspice/sperror.h"
|
||||
|
||||
#include "dev.h"
|
||||
#include "error.h"
|
||||
|
||||
extern bool ft_stricterror;
|
||||
|
||||
int
|
||||
CKTask(CKTcircuit *ckt, GENinstance *instance, int which, IFvalue *value, IFvalue *selector)
|
||||
|
|
@ -40,5 +43,9 @@ CKTask(CKTcircuit *ckt, GENinstance *instance, int which, IFvalue *value, IFvalu
|
|||
length = sizeof(int);
|
||||
BRDCST_(&msgtype, (char *)&error, &length, &from);
|
||||
#endif /* PARALLEL_ARCH */
|
||||
if (ft_stricterror) {
|
||||
fprintf(stderr, "\nError: %s\n", errMsg);
|
||||
controlled_exit(EXIT_BAD);
|
||||
}
|
||||
return(error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue