mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-09-01 18:27:19 +02:00
21 lines
238 B
Plaintext
21 lines
238 B
Plaintext
* check whether .model accepts instance defaults
|
|
|
|
v1 1 0 dc=1
|
|
r1 1 0 myres
|
|
|
|
.model myres r(resistance=2k)
|
|
|
|
.control
|
|
|
|
op
|
|
|
|
if abs(i(v1)/-0.5mA - 1) > 1e-9
|
|
echo "ERROR: check failed"
|
|
quit 1
|
|
else
|
|
echo "INFO: ok"
|
|
quit 0
|
|
end
|
|
|
|
.endc
|