Browse Source

use enum simulation_types values instead of numericals

pre-master-46
rlar 13 years ago
parent
commit
190932bf65
  1. 3
      src/frontend/fourier.c
  2. 4
      src/frontend/vectors.c

3
src/frontend/fourier.c

@ -16,6 +16,7 @@ Author: 1985 Wayne A. Christopher, U. C. Berkeley CAD Group
#include "ngspice/fteparse.h"
#include "ngspice/sperror.h"
#include "ngspice/const.h"
#include "ngspice/sim.h"
#include "fourier.h"
#include "variable.h"
@ -197,7 +198,7 @@ fourier(wordlist *wl, struct plot *current_plot)
n = alloc(struct dvec);
ZERO(n, struct dvec);
n->v_name = copy(newvecname);
n->v_type = 0;
n->v_type = SV_NOTYPE;
n->v_flags = (1 | VF_PERMANENT);
n->v_length = 3 * nfreqs;
n->v_numdims = 2;

4
src/frontend/vectors.c

@ -94,7 +94,7 @@ findvec(char *word, struct plot *pl)
if (cieq(word, "allv")) {
for (d = pl->pl_dvecs; d; d = d->v_next) {
if ((d->v_flags & VF_PERMANENT) && (d->v_type == 3)) {
if ((d->v_flags & VF_PERMANENT) && (d->v_type == SV_VOLTAGE)) {
if (d->v_link2) {
v = vec_copy(d);
vec_new(v);
@ -113,7 +113,7 @@ findvec(char *word, struct plot *pl)
if (cieq(word, "alli")) {
for (d = pl->pl_dvecs; d; d = d->v_next) {
if ((d->v_flags & VF_PERMANENT) && (d->v_type == 4)) {
if ((d->v_flags & VF_PERMANENT) && (d->v_type == SV_CURRENT)) {
if (d->v_link2) {
v = vec_copy(d);
vec_new(v);

Loading…
Cancel
Save