Skip to content

Commit

Permalink
removes a wayard half from h target
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Park authored and Mike Park committed Oct 19, 2022
1 parent 7ebcd6b commit 83d820a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ref_phys.c
Expand Up @@ -1074,7 +1074,7 @@ REF_FCN REF_STATUS ref_phys_yplus_metric(REF_GRID ref_grid, REF_DBL *metric,
diff = ABS(l2 - l1) / l1;
s2 = MIN(MAX(diff - err1, 0.0) / (err2 - err1), 1.0);
s1 = 1.0 - s2;
h0 = 0.5 * (s1 * target * l1 / equilateral_altitude + s2 * mh);
h0 = (s1 * target * l1 / equilateral_altitude + s2 * mh);
if (!sample_viscous_length_error) {
h0 = target * l1 / equilateral_altitude;
}
Expand Down

0 comments on commit 83d820a

Please sign in to comment.