evtprint: prevent a crash when eprint has been called

but there is no simulation run.
This commit is contained in:
Holger Vogt 2021-11-23 15:32:15 +01:00
parent bff90f1498
commit 2f98a5b305
1 changed files with 4 additions and 0 deletions

View File

@ -413,6 +413,10 @@ EVTdisplay(wordlist *wl)
out_printf("No event node available!\n");
return;
}
if (!ckt->evt->jobs.job_plot) {
out_printf("No event job run, no data available!\n");
return;
}
out_printf("\nList of event nodes in plot %s\n", ckt->evt->jobs.job_plot[ckt->evt->jobs.cur_job]);
out_printf(" %-20s: %-5s, %s\n\n", "node name", "type", "number of events");
node_index = 0;