Browse Source

Improve comments, add note to user.

pre-master-46
Holger Vogt 5 months ago
parent
commit
8e0622434f
  1. 10
      src/spicelib/analysis/optran.c

10
src/spicelib/analysis/optran.c

@ -67,6 +67,8 @@ static bool nooptran = TRUE;
we firstly fill the static vars opstepsize, opfinaltime, we firstly fill the static vars opstepsize, opfinaltime,
and opramptime. Later from inp.c we call com_optran again and set the and opramptime. Later from inp.c we call com_optran again and set the
data in ft_curckt->ci_defTask. 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) { void com_optran(wordlist* wl) {
wordlist* wltmp = wl; wordlist* wltmp = wl;
@ -177,8 +179,10 @@ void com_optran(wordlist* wl) {
goto bugquit; goto bugquit;
} }
/* optran deselected by setting opstepsize to 0 */ /* optran deselected by setting opstepsize to 0 */
if (opstepsize == 0)
if (opstepsize == 0) {
nooptran = TRUE; nooptran = TRUE;
fprintf(stdout, "Note: Optran is deselected");
}
dataset = TRUE; dataset = TRUE;
if (errno == 0) if (errno == 0)
@ -311,8 +315,8 @@ OPtran(CKTcircuit *ckt, int oldconverged)
int redostep; int redostep;
#endif #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) if (nooptran)
return oldconverged; return oldconverged;
/* /*

Loading…
Cancel
Save