Print out option hbnumfreq.

This commit is contained in:
Holger Vogt 2025-12-10 21:53:00 +01:00
parent 1222434400
commit 0cf185e518
1 changed files with 17 additions and 0 deletions

View File

@ -7,6 +7,9 @@
#include "variable.h"
#include "com_option.h"
#ifdef WITH_HB
extern int hbnumfreqs[10];
#endif
/* The option command. Syntax is option [opt ...] [opt = val ...].
* Val may be a string, an int, a float, or a list of the
@ -92,6 +95,20 @@ com_option(wordlist *wl)
printf("delmin = %g\n", circuit->CKTdelmin);
#ifdef WITH_HB
if (hbnumfreqs[0] > 0) {
int ii = 0;
printf("\nHarmonic Balance number of frequencies\n");
printf("hbnumfreq");
while (hbnumfreqs[ii] > 0 && ii < 10) {
printf(" %d", hbnumfreqs[ii]);
ii++;
}
printf("\n");
}
#endif
printf("\nDefault parameters for MOS devices\n");
printf("Default M: %f\n", circuit->CKTdefaultMosM);
printf("Default L: %f\n", circuit->CKTdefaultMosL);