Browse Source

Fixed incorrect voltage vectors name in output file.

pre-master-46
pnenzi 18 years ago
parent
commit
b449c09b48
  1. 4
      ChangeLog
  2. 2
      src/frontend/rawfile.c

4
ChangeLog

@ -1,3 +1,7 @@
2008-01-02 Paolo Nenzi <p.nenzi@ieee.org>
* src/frontend/rawfile.c: Fixed rawfile ascii generation. The prevoius patch
produced incorrect string like v(v(1)) for v(1) in the output file.
2007-12-31 Holger Vogt
* src/frontend/com_chdir.c: fix for the crashing of ngspice under Windows when
started from windows explorer.

2
src/frontend/rawfile.c

@ -165,7 +165,7 @@ raw_write(char *name, struct plot *pl, bool app, bool binary)
fprintf(fp, "\t%d\ti(%s)\t%s", i++, v->v_name, ft_typenames(v->v_type));
if ( branch != NULL ) *branch = '#';
} else if ( strcmp( ft_typenames(v->v_type), "voltage" ) == 0 ) {
fprintf(fp, "\t%d\tv(%s)\t%s", i++, v->v_name, ft_typenames(v->v_type));
fprintf(fp, "\t%d\t%s\t%s", i++, v->v_name, ft_typenames(v->v_type)); /* XXX*/
} else {
fprintf(fp, "\t%d\t%s\t%s", i++, v->v_name, ft_typenames(v->v_type));
}

Loading…
Cancel
Save