Skip to content

Commit

Permalink
DmpPi::evalDmpEqns nan proofing
Browse files Browse the repository at this point in the history
Signed-off-by: James Cherry <[email protected]>
  • Loading branch information
jjcherry56 committed Dec 13, 2021
1 parent 9671818 commit e0998d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dcalc/DmpCeff.cc
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,9 @@ DmpPi::evalDmpEqns()

double t_vth, t_vl, slew;
gateDelays(ceff, t_vth, t_vl, slew);
if (slew == 0.0)
throw DmpError("eqn eval failed: slew = 0");

double ceff_time = slew / (vh_ - vl_);
if (ceff_time > 1.4 * dt)
ceff_time = 1.4 * dt;
Expand Down

0 comments on commit e0998d5

Please sign in to comment.