From 8e0622434fca63a19274defda6de32c0451b87d9 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Mon, 20 Oct 2025 16:07:19 +0200 Subject: [PATCH] Improve comments, add note to user. --- src/spicelib/analysis/optran.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/spicelib/analysis/optran.c b/src/spicelib/analysis/optran.c index 8483560f3..0ba875d97 100644 --- a/src/spicelib/analysis/optran.c +++ b/src/spicelib/analysis/optran.c @@ -67,6 +67,8 @@ static bool nooptran = TRUE; we firstly fill the static vars opstepsize, opfinaltime, and opramptime. Later from inp.c we call com_optran again and set the data in ft_curckt->ci_defTask. + + com_optran is called from cp_init() as 'optran 1 1 1 100n 10u 0'. */ void com_optran(wordlist* wl) { wordlist* wltmp = wl; @@ -177,8 +179,10 @@ void com_optran(wordlist* wl) { goto bugquit; } /* optran deselected by setting opstepsize to 0 */ - if (opstepsize == 0) + if (opstepsize == 0) { nooptran = TRUE; + fprintf(stdout, "Note: Optran is deselected"); + } dataset = TRUE; if (errno == 0) @@ -311,8 +315,8 @@ OPtran(CKTcircuit *ckt, int oldconverged) int redostep; #endif - /* if optran command has not been given (in .spiceinit or in .control section), - we don' use optran */ + /* if optran command with step size 0 has been set in in .spiceinit or in .control section, + we don't use optran */ if (nooptran) return oldconverged; /*