Skip to content

Commit 2f85fdf

Browse files
committed
Dmp cleanup
Signed-off-by: James Cherry <cherry@parallaxsw.com>
1 parent 6bb888b commit 2f85fdf

6 files changed

Lines changed: 350 additions & 539 deletions

File tree

dcalc/CcsCeffDelayCalc.cc

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -445,14 +445,13 @@ CcsCeffDelayCalc::findVlTime(double v,
445445
{
446446
double t_init = region_ramp_times_[0];
447447
double t_final = region_ramp_times_[region_count_];
448-
bool root_fail = false;
449-
double time = findRoot(
450-
[&](double t, double &y, double &dy) {
451-
vl(t, elmore, y, dy);
452-
y -= v;
453-
},
454-
t_init, t_final + elmore * 3.0, .001, 20, root_fail);
455-
vl_fail_ |= root_fail;
448+
auto [time, failed] =
449+
findRoot([&](double t, double &y, double &dy) {
450+
vl(t, elmore, y, dy);
451+
y -= v;
452+
},
453+
t_init, t_final + elmore * 3.0, .001, 20);
454+
vl_fail_ |= failed;
456455
return time;
457456
}
458457

0 commit comments

Comments
 (0)