In case of transient simulation error, bail out when fft is called.
This commit is contained in:
parent
2d9e42669b
commit
5066fe05f3
|
|
@ -58,6 +58,13 @@ com_fft(wordlist *wl)
|
||||||
}
|
}
|
||||||
|
|
||||||
length = (plot_cur->pl_scale)->v_length;
|
length = (plot_cur->pl_scale)->v_length;
|
||||||
|
|
||||||
|
/* in case of tran error */
|
||||||
|
if (length < 2) {
|
||||||
|
fprintf(cp_err, "Error: fft needs more than one time point, check the tran simulation!\n");
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
|
||||||
time = (plot_cur->pl_scale)->v_realdata;
|
time = (plot_cur->pl_scale)->v_realdata;
|
||||||
span = time[length-1] - time[0] + time[length-1] - time[length-2];
|
span = time[length-1] - time[0] + time[length-1] - time[length-2];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue