Browse Source

add parameter mode to EVTsharedsend_line()

last entry for the dictionary list is NULL
pre-master-46
h_vogt 9 years ago
committed by Holger Vogt
parent
commit
25a324ba6e
  1. 3
      src/sharedspice.c
  2. 19
      src/xspice/evt/evtdump.c

3
src/sharedspice.c

@ -971,6 +971,7 @@ int ngSpice_Init_Evt(SendEvtData* sevtdata, SendInitEvtData* sinitevtdata, void
{ {
if (sevtdata) if (sevtdata)
wantevtdata = TRUE; wantevtdata = TRUE;
return(TRUE);
} }
/* Get info about the event node vector. /* Get info about the event node vector.
@ -1937,7 +1938,7 @@ sharedsync(double *pckttime, double *pcktdelta, double olddelta, double finalt,
} }
} }
void shared_send_event(int index, double step, double dvalue, char *svalue, void *pvalue, int len)
void shared_send_event(int index, double step, double dvalue, char *svalue, void *pvalue, int plen, int mode)
{ {
printf(""); printf("");
return; return;

19
src/xspice/evt/evtdump.c

@ -73,7 +73,8 @@ static void EVTsharedsend_line(
int ipc_index, /* The index used in the dictionary */ int ipc_index, /* The index used in the dictionary */
double step, /* The analysis step */ double step, /* The analysis step */
void *node_value, /* The node value */ void *node_value, /* The node value */
int udn_index); /* The user-defined node index */
int udn_index, /* The user-defined node index */
int mode); /* mode (op, dc, tran) we are in */
#endif #endif
static void EVTsend_line( static void EVTsend_line(
@ -481,6 +482,8 @@ static void EVTshareddump(
shared_send_dict(buff); shared_send_dict(buff);
} }
} }
/* last entry to list */
shared_send_dict(NULL);
} }
/* If this is the first call, send the operating point solution */ /* If this is the first call, send the operating point solution */
@ -491,7 +494,8 @@ static void EVTshareddump(
EVTsharedsend_line(node_dict[i].ipc_index, EVTsharedsend_line(node_dict[i].ipc_index,
step, step,
rhsold[i].node_value, rhsold[i].node_value,
node_table[i]->udn_index);
node_table[i]->udn_index,
mode);
} }
} }
return; return;
@ -526,7 +530,8 @@ static void EVTshareddump(
EVTsharedsend_line(node_dict[i].ipc_index, EVTsharedsend_line(node_dict[i].ipc_index,
step, step,
rhsold[i].node_value, rhsold[i].node_value,
node_table[i]->udn_index);
node_table[i]->udn_index,
mode);
} }
} }
} }
@ -548,7 +553,8 @@ static void EVTshareddump(
EVTsharedsend_line(node_dict[index].ipc_index, EVTsharedsend_line(node_dict[index].ipc_index,
here->step, here->step,
here->node_value, here->node_value,
node_table[index]->udn_index);
node_table[index]->udn_index,
mode);
} }
} }
} }
@ -568,7 +574,8 @@ static void EVTsharedsend_line(
int ipc_index, /* The index used in the dictionary */ int ipc_index, /* The index used in the dictionary */
double step, /* The analysis step */ double step, /* The analysis step */
void *node_value, /* The node value */ void *node_value, /* The node value */
int udn_index) /* The user-defined node index */
int udn_index, /* The user-defined node index */
int mode) /* the mode (op, dc, tran) we are in */
{ {
double dvalue; double dvalue;
char *svalue; char *svalue;
@ -594,7 +601,7 @@ static void EVTsharedsend_line(
} }
/* Send it to sharedspice.c */ /* Send it to sharedspice.c */
shared_send_event(ipc_index, step, dvalue, svalue, pvalue, len);
shared_send_event(ipc_index, step, dvalue, svalue, pvalue, len, mode);
} }

Loading…
Cancel
Save