Files
ngspice/paranoia_parallel/examples/various/def_red.cir
T
Brian Taylor 6fce461984 Paranoia_Parallel: a test suite for more than 100 test circuits,
running in parallel on a multi-core machine (12 min execution time
on a i9 9900, ngspice compiled with gcc, debug mode enabled.
Linux with Valgrind and Parallel are required.
2026-07-08 22:47:22 +02:00

20 lines
256 B
Plaintext

Test define/alter
* function with single parameter is o.k.
* function with two parameters leaks memory
R1 1 0 myres
.model myres res(r=1)
v1 1 0 1
.control
define myfcn(x,y) (y + x + 1)
op
print all
altermod @r1[r] = myfcn(2,2)
op
print all
.endc
.end