in ps compatibility mode: translate t_measured to tnom

This commit is contained in:
Holger Vogt 2019-10-01 23:43:11 +02:00
parent 3109cf2825
commit 03c5870034
1 changed files with 5 additions and 1 deletions

View File

@ -7569,7 +7569,9 @@ static struct card *pspice_compat(struct card *oldcard)
}
}
/* replace T_ABS by temp and T_REL_GLOBAL by dtemp in .model cards */
/* replace T_ABS by temp, T_REL_GLOBAL by dtemp, and T_MEASURED by TNOM
in .model cards. What about T_REL_LOCAL ? T_REL_LOCAL is used in conjunction with AKO
and is not yet implemented. */
for (card = newcard; card; card = card->nextcard) {
char *cut_line = card->line;
if (ciprefix(".model", cut_line)) {
@ -7578,6 +7580,8 @@ static struct card *pspice_compat(struct card *oldcard)
memcpy(t_str, " temp", 5);
else if ((t_str = strstr(cut_line, "t_rel_global")) != NULL)
memcpy(t_str, " dtemp", 12);
else if ((t_str = strstr(cut_line, "t_measured")) != NULL)
memcpy(t_str, " tnom", 10);
}
}