diff options
Diffstat (limited to 'nl_examples/congo_bongo.c')
-rw-r--r-- | nl_examples/congo_bongo.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/nl_examples/congo_bongo.c b/nl_examples/congo_bongo.c index b8ef3c181df..492865c79c4 100644 --- a/nl_examples/congo_bongo.c +++ b/nl_examples/congo_bongo.c @@ -11,6 +11,7 @@ /* set to 1 to use optimizations increasing performance significantly */ #define USE_OPTMIZATIONS 1 +#define USE_FRONTIERS 1 /* ---------------------------------------------------------------------------- * Library section header START @@ -44,12 +45,18 @@ NETLIST_START(dummy) PARAM(Solver.ACCURACY, 1e-8) PARAM(Solver.NR_LOOPS, 90) - PARAM(Solver.SOR_FACTOR, 0.001) - PARAM(Solver.GS_LOOPS, 1) + PARAM(Solver.SOR_FACTOR, 1.01) + PARAM(Solver.GS_LOOPS, 4) + //PARAM(Solver.METHOD, "GMRES") PARAM(Solver.METHOD, "MAT_CR") + //PARAM(Solver.METHOD, "SOR") #if USE_OPTMIZATIONS +#if USE_FRONTIERS SOLVER(Solver, 24000) +#else + SOLVER(Solver, 48000) +#endif PARAM(Solver.DYNAMIC_TS, 0 ) PARAM(Solver.PARALLEL, 1) #else @@ -121,7 +128,7 @@ NETLIST_START(dummy) PARAM(XU13.D.MODEL, "MB3614(TYPE=1)") #endif -#if 1 +#if USE_FRONTIERS OPTIMIZE_FRONTIER(C51.1, RES_K(20), 50) OPTIMIZE_FRONTIER(R77.2, RES_K(20), 50) @@ -374,7 +381,7 @@ NETLIST_START(G501534_DIP) //AFUNC(f, 2, "A0 A1 A1 A1 * * 0.01 * *") //AFUNC(f, 2, "A0") //AFUNC(f, 2, "A0 6 - A1 3 pow * 0.02 * 6 +") - AFUNC(f, 2, "A0 A1 3 pow * 0.02 *") + AFUNC(f, 2, "A0 * pow(A1,3.0) * 0.02") /* * 12: VCC |