From 359c321dcf08ee1fa857102d7f87295a555b0ed7 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 11 May 2025 17:34:39 +0200 Subject: [PATCH] Add warning message if E or H poly source has multiplier m --- src/xspice/enh/enhtrans.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/xspice/enh/enhtrans.c b/src/xspice/enh/enhtrans.c index 5482003c3..df5fbfd8e 100644 --- a/src/xspice/enh/enhtrans.c +++ b/src/xspice/enh/enhtrans.c @@ -482,6 +482,12 @@ static char *two2three_translate( tfree(multi); } + if (multi && (type == 'e' || type == 'E' || type == 'h' || type == 'H')) { + fprintf(stderr, "Warning: multiplier m not available for E and H poly sources, ignored as\n" + " %s\n", orig_card); + tfree(multi); + } + #ifdef TRACE /* SDB debug statement */ printf("In two2three_translate, translated statements:\n%s \n%s \n", *inst_card, *mod_card);