Browse Source

add error checking

pre-master-46
h_vogt 15 years ago
parent
commit
8a4b0e9bce
  1. 3
      ChangeLog
  2. 10
      src/frontend/spiceif.c

3
ChangeLog

@ -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

10
src/frontend/spiceif.c

@ -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 *

Loading…
Cancel
Save