add "Plotname: constants" to the list of recognized ngspice plots in raw file

This commit is contained in:
Stefan Frederik 2022-08-14 14:14:19 +02:00
parent 86311f8d47
commit 2e37724959
1 changed files with 4 additions and 0 deletions

View File

@ -344,6 +344,10 @@ static int read_dataset(FILE *fd)
if(xctx->graph_sim_type && xctx->graph_sim_type != 3) xctx->graph_sim_type = 0;
else xctx->graph_sim_type = 3;
}
else if(!strncmp(line, "Plotname:", 9) && strstr(line, "constants")) {
if(xctx->graph_sim_type && xctx->graph_sim_type != 2) xctx->graph_sim_type = 0;
else xctx->graph_sim_type = 2;
}
else if(!strncmp(line, "Plotname:", 9)) {
xctx->graph_sim_type = 0;
}