Browse Source

optran 0 0 0 0 0 uic may be used to load initial conditions

(.ic=xxx statements) without staring an op iteration.
pre-master-46
Holger Vogt 2 years ago
parent
commit
1cdacad261
  1. 3
      src/spicelib/analysis/optran.c

3
src/spicelib/analysis/optran.c

@ -161,7 +161,8 @@ void com_optran(wordlist* wl) {
wltmp = wltmp->wl_next;
stpstr = wltmp->wl_word;
opramptime = INPevaluate(&stpstr, &err, 1);
if (err || (*stpstr != '\0'))
/* optran with uic reads initial conditions */
if (err || ((*stpstr != '\0') && !strstr(stpstr, "uic")))
goto bugquit;
if (opstepsize > opfinaltime) {
fprintf(stderr, "Error: Optran step size larger than final time.\n");

Loading…
Cancel
Save