Remove parameter noiseless in simple diode model.
The model is noiseless anyway.
This commit is contained in:
parent
21f62db206
commit
8d86aa84d8
|
|
@ -9590,6 +9590,13 @@ static struct card *ltspice_compat(struct card *oldcard)
|
||||||
search_plain_identifier(card->line, "ilimit")) {
|
search_plain_identifier(card->line, "ilimit")) {
|
||||||
char *modname;
|
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);
|
card->line = str = inp_remove_ws(card->line);
|
||||||
str = nexttok(str); /* throw away '.model' */
|
str = nexttok(str); /* throw away '.model' */
|
||||||
INPgetNetTok(&str, &modname, 0); /* model name */
|
INPgetNetTok(&str, &modname, 0); /* model name */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue