committed by
Holger Vogt
7 changed files with 99 additions and 1 deletions
-
1src/include/ngspice/gendefs.h
-
3src/spicelib/analysis/cktmcrt.c
-
38src/spicelib/parser/inpdpar.c
-
27src/spicelib/parser/inpgmod.c
-
2tests/regression/model/Makefile.am
-
20tests/regression/model/instance-defaults.cir
-
9tests/regression/model/instance-defaults.out
@ -0,0 +1,20 @@ |
|||
* 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 |
|||
@ -0,0 +1,9 @@ |
|||
|
|||
Circuit: * check whether .model accepts instance defaults |
|||
|
|||
Doing analysis at TEMP = 27.000000 and TNOM = 27.000000 |
|||
|
|||
|
|||
|
|||
No. of Data Rows : 1 |
|||
INFO: ok |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue