committed by
rlar
11 changed files with 127 additions and 0 deletions
-
12src/frontend/inp.c
-
4src/include/ngspice/cktdefs.h
-
3src/include/ngspice/ngspice.h
-
26src/main.c
-
5src/spicelib/analysis/dcop.c
-
3src/spicelib/analysis/dctran.c
-
3src/spicelib/analysis/dctrcurv.c
-
1src/spicelib/devices/Makefile.am
-
38src/spicelib/devices/cktsoachk.c
-
28src/spicelib/devices/devsup.c
-
4visualc/vngspice.vcproj
@ -0,0 +1,38 @@ |
|||
/********** |
|||
Copyright 2013 Dietmar Warning. All rights reserved. |
|||
Author: 2013 Dietmar Warning |
|||
**********/ |
|||
|
|||
/* |
|||
* This is a driver program to iterate through all the various SOA check |
|||
* functions provided for the circuit elements in the given circuit */ |
|||
|
|||
#include "ngspice/config.h" |
|||
#include "ngspice/devdefs.h" |
|||
#include "ngspice/sperror.h" |
|||
#include "ngspice/ifsim.h" |
|||
#include "ngspice/devdefs.h" |
|||
|
|||
#include "dev.h" |
|||
|
|||
|
|||
int |
|||
CKTsoaCheck(CKTcircuit *ckt) |
|||
{ |
|||
int i, error; |
|||
|
|||
if (ckt->CKTmode & (MODEDC | MODEDCOP | MODEDCTRANCURVE | MODETRAN | MODETRANOP)) { |
|||
|
|||
SPICEdev **devs = devices(); |
|||
|
|||
for (i = 0; i < DEVmaxnum; i++) { |
|||
if (devs[i] && devs[i]->DEVsoaCheck && ckt->CKThead[i]) { |
|||
error = devs[i]->DEVsoaCheck (ckt, ckt->CKThead[i]); |
|||
if (error) |
|||
return error; |
|||
} |
|||
} |
|||
} |
|||
|
|||
return OK; |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue