remove code that leads to crash if tran simulation is
interrupted and reset is sent (KiCAD)
This commit is contained in:
parent
1a9c1b8c24
commit
c2513af3e8
|
|
@ -189,9 +189,6 @@ com_remcirc(wordlist *wl)
|
||||||
struct variable *v, *next;
|
struct variable *v, *next;
|
||||||
struct card *dd; /*in: the spice deck */
|
struct card *dd; /*in: the spice deck */
|
||||||
struct circ *p, *prev = NULL;
|
struct circ *p, *prev = NULL;
|
||||||
#ifdef SHARED_MODULE
|
|
||||||
TRANan *job;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
NG_IGNORE(wl);
|
NG_IGNORE(wl);
|
||||||
|
|
||||||
|
|
@ -200,15 +197,6 @@ com_remcirc(wordlist *wl)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SHARED_MODULE // leads to crashes
|
|
||||||
/* This may happen only with shared ngspice during transient analysis,
|
|
||||||
if simulation is stopped with 'bg_halt'
|
|
||||||
and then circuit shall be removed prematurely. */
|
|
||||||
job = (TRANan *) ft_curckt->ci_ckt->CKTcurJob;
|
|
||||||
if (job && (job->JOBtype == 4) && (job->TRANplot))
|
|
||||||
SPfrontEnd->OUTendPlot (job->TRANplot);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* delete numparam data structure dicoS */
|
/* delete numparam data structure dicoS */
|
||||||
nupa_del_dicoS();
|
nupa_del_dicoS();
|
||||||
/* delete entry in dicoslist */
|
/* delete entry in dicoslist */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue