mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 13:57:32 +02:00
Update to previous commit: safeguard against no circuit loaded
This commit is contained in:
@@ -359,7 +359,7 @@ com_stype(wordlist *wl)
|
|||||||
|
|
||||||
for (wl = wl->wl_next; wl; wl = wl->wl_next) {
|
for (wl = wl->wl_next; wl; wl = wl->wl_next) {
|
||||||
const char* vecname = wl->wl_word;
|
const char* vecname = wl->wl_word;
|
||||||
if (*vecname == '@'&& !ft_curckt->ci_runonce) {
|
if (*vecname == '@' && ft_curckt && !ft_curckt->ci_runonce) {
|
||||||
fprintf(cp_err, "Warning: Vector %s is available only after the simulation has been run!\n", vecname);
|
fprintf(cp_err, "Warning: Vector %s is available only after the simulation has been run!\n", vecname);
|
||||||
fprintf(cp_err, " Command 'settype %s %s' is ignored\n\n", type, vecname);
|
fprintf(cp_err, " Command 'settype %s %s' is ignored\n\n", type, vecname);
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user