Remove parameter noiseless in simple diode model.

The model is noiseless anyway.
This commit is contained in:
Holger Vogt 2022-09-29 16:05:30 +02:00
parent 21f62db206
commit 8d86aa84d8
1 changed files with 7 additions and 0 deletions

View File

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