From 8d86aa84d884f878fffcb941bd67ec73aa66f724 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Thu, 29 Sep 2022 16:05:30 +0200 Subject: [PATCH] Remove parameter noiseless in simple diode model. The model is noiseless anyway. --- src/frontend/inpcom.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 3f723f9e9..43d6350b2 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -9590,6 +9590,13 @@ static struct card *ltspice_compat(struct card *oldcard) search_plain_identifier(card->line, "ilimit")) { char *modname; + /* remove parameter 'noiseless' (the model is noiseless anyway) */ + char *nonoise = search_plain_identifier(card->line, "noiseless"); + if (nonoise) { + size_t iii; + for (iii = 0; iii < 9; iii++) + nonoise[iii] = ' '; + } card->line = str = inp_remove_ws(card->line); str = nexttok(str); /* throw away '.model' */ INPgetNetTok(&str, &modname, 0); /* model name */