Improve comments, add note to user.

This commit is contained in:
Holger Vogt 2025-10-20 16:07:19 +02:00
parent b260b4bc27
commit 8e0622434f
1 changed files with 7 additions and 3 deletions

View File

@ -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;
/*