From 08c0f979990ac254439a90fdfe5275997eac23f8 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 7 Apr 2024 21:36:59 +0200 Subject: [PATCH] optran 0 0 0 0 0 uic may be used to load initial conditions (.ic=xxx statements) without staring an op iteration. --- src/spicelib/analysis/optran.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/spicelib/analysis/optran.c b/src/spicelib/analysis/optran.c index f0c7dd76e..8a75fd1b6 100644 --- a/src/spicelib/analysis/optran.c +++ b/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");