Browse Source

add wantevtdata if event output should be sent to caller

pre-master-46
h_vogt 9 years ago
committed by Holger Vogt
parent
commit
e36b028cdb
  1. 1
      src/include/ngspice/ipctiein.h
  2. 2
      src/spicelib/analysis/dcpss.c
  3. 2
      src/spicelib/analysis/dctran.c
  4. 2
      src/spicelib/analysis/dctrcurv.c

1
src/include/ngspice/ipctiein.h

@ -90,6 +90,7 @@ typedef struct {
extern Ipc_Tiein_t g_ipc;
extern bool wantevtdata;
#endif

2
src/spicelib/analysis/dcpss.c

@ -476,7 +476,7 @@ DCpss(CKTcircuit *ckt,
#ifdef XSPICE
/* gtri - modify - wbk - 12/19/90 - Send IPC stuff */
if(g_ipc.enabled) {
if ((g_ipc.enabled) || wantevtdata) {
if (pss_state == PSS)
{

2
src/spicelib/analysis/dctran.c

@ -429,7 +429,7 @@ DCtran(CKTcircuit *ckt,
#ifdef XSPICE
/* gtri - modify - wbk - 12/19/90 - Send IPC stuff */
if(g_ipc.enabled) {
if ((g_ipc.enabled) || wantevtdata) {
/* Send event-driven results */
EVTdump(ckt, IPC_ANAL_TRAN, 0.0);

2
src/spicelib/analysis/dctrcurv.c

@ -376,7 +376,7 @@ DCtrCurv(CKTcircuit *ckt, int restart)
/* If first time through, call CKTdump to output Operating Point info */
/* for Mspice compatibility */
if (g_ipc.enabled && firstTime) {
if (((g_ipc.enabled) || wantevtdata) && firstTime) {
ipc_send_dcop_prefix();
CKTdump(ckt, 0.0, plot);
ipc_send_dcop_suffix();

Loading…
Cancel
Save