add error checking

This commit is contained in:
h_vogt 2011-01-03 20:37:36 +00:00
parent c315293c5c
commit 8a4b0e9bce
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,6 @@
11-01-03 Holger Vogt
* spiceif.c: add error checking for 'altermod'
11-01-02 Dietmar Warning
* math/fft/fftlib.c: inline functions to static
* ngspice.h: __inline for _MSC_VER

View File

@ -60,6 +60,8 @@ CDHW*/
#include "spiceif.h"
#include "variable.h"
#include "error.h"
#ifdef XSPICE
/* gtri - add - wbk - 11/9/90 - include MIF function prototypes */
#include "mifproto.h"
@ -935,8 +937,12 @@ if_setparam(CKTcircuit *ckt, char **name, char *param, struct dvec *val, int do_
Call only if CKTtime > 0 to avoid conflict with previous 'reset' command.
May contain side effects because call is abundant. h_vogt 110101
*/
if ((do_model) && (ckt->CKTtime > 0))
CKTtemp(ckt);
if ((do_model) && (ckt->CKTtime > 0)) {
int error = 0;
error = CKTtemp(ckt);
if (error) fprintf(stderr,"Error during changing a device model parameter!\n");
if (error) controlled_exit(1);
}
}
static struct variable *