Browse Source

frontend/device.c, com_alter_common(), #2/11 set `v_type' and `v_flags' too

pre-master-46
rlar 10 years ago
parent
commit
c284161949
  1. 3
      src/frontend/device.c

3
src/frontend/device.c

@ -14,6 +14,7 @@ Modified: 2000 AlansFixes
#include "ngspice/cpdefs.h"
#include "ngspice/ftedefs.h"
#include "ngspice/dgen.h"
#include "ngspice/sim.h"
#include "circuits.h"
#include "device.h"
@ -1324,6 +1325,8 @@ com_alter_common(wordlist *wl, int do_model)
if (!dv)
return;
dv->v_name = copy("real vector");
dv->v_type = SV_NOTYPE;
dv->v_flags = VF_REAL;
type &= IF_VARTYPES;
if (type == IF_REALVEC) {
list = TMALLOC(double, 1);

Loading…
Cancel
Save