mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-09-07 21:54:48 +02:00
Bug no. #512: Set a breakpoint at delay time td to safely
catch the starting time point of the random numbers
This commit is contained in:
@@ -269,6 +269,12 @@ VSRCaccept(CKTcircuit *ckt, GENmodel *inModel)
|
||||
double TS = state -> TS;
|
||||
double TD = state -> TD;
|
||||
|
||||
if (ckt->CKTtime == 0 && TD > 0) {
|
||||
error = CKTsetBreak(ckt, TD);
|
||||
if (error)
|
||||
return(error);
|
||||
}
|
||||
|
||||
double time = ckt->CKTtime - TD;
|
||||
|
||||
if (time < 0) break;
|
||||
|
||||
Reference in New Issue
Block a user