From 36dd77f63e4347903b418b7104a6a64540c54ae9 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 10 Oct 2021 11:40:53 +0200 Subject: [PATCH] if step size in optran command is set to 0, optran is deselected. --- src/spicelib/analysis/optran.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/spicelib/analysis/optran.c b/src/spicelib/analysis/optran.c index 3e42b2d74..9ac95a25c 100644 --- a/src/spicelib/analysis/optran.c +++ b/src/spicelib/analysis/optran.c @@ -166,6 +166,10 @@ void com_optran(wordlist* wl) { fprintf(stderr, "Error: Ramp time larger than final time.\n"); goto bugquit; } + /* optran deselected by setting opstepsize to 0 */ + if (opstepsize == 0) + nooptran = TRUE; + dataset = TRUE; if (errno == 0) errno = saved;