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-09-09 20:18:44 +02:00
parent 2b33ef8c58
commit 64e5e13c4e
1 changed files with 6 additions and 0 deletions

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;