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:
Holger Vogt
2020-10-10 12:19:04 +02:00
parent 2b33ef8c58
commit 64e5e13c4e
+6
View File
@@ -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;