prevent crash if first breakpoint is beyond optran max time
This commit is contained in:
parent
6bdd6610f6
commit
bca099ca29
|
|
@ -73,7 +73,7 @@ CKTsetBreak(CKTcircuit *ckt, double time)
|
|||
}
|
||||
}
|
||||
/* never found it - beyond end of time - extend out idea of time */
|
||||
if(time-ckt->CKTbreaks[ckt->CKTbreakSize-1]<=ckt->CKTminBreak) {
|
||||
if(ckt->CKTbreaks && time-ckt->CKTbreaks[ckt->CKTbreakSize-1]<=ckt->CKTminBreak) {
|
||||
/* very close tegether - keep earlier, throw out new point */
|
||||
#ifdef TRACE_BREAKPOINT
|
||||
printf("[t:%e] \t %e skipped (at the end)\n", ckt->CKTtime, time);
|
||||
|
|
|
|||
Loading…
Reference in New Issue