add wantevtdata if event output should be sent to caller

This commit is contained in:
h_vogt 2017-06-04 00:39:17 +02:00 committed by Holger Vogt
parent 3e52cdd8c1
commit e36b028cdb
4 changed files with 4 additions and 3 deletions

View File

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

View File

@ -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)
{

View File

@ -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);

View File

@ -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();