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:
parent
2b33ef8c58
commit
64e5e13c4e
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue