Fixed incorrect voltage vectors name in output file.

This commit is contained in:
pnenzi 2008-01-02 17:38:13 +00:00
parent d1828b6d0b
commit b449c09b48
2 changed files with 5 additions and 1 deletions

View File

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

View File

@ -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));
}