Skip to content

Commit

Permalink
corrects blend logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Park authored and Mike Park committed Oct 18, 2022
1 parent 2a7cdb2 commit 047306b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ref_phys.c
Original file line number Diff line number Diff line change
Expand Up @@ -1053,9 +1053,14 @@ REF_FCN REF_STATUS ref_phys_yplus_metric_reference_length(
h0 = target * MIN(l0, reference_lengthscale);
{
REF_DBL st, sr;
sr = MAX(MIN(diff - 0.1, 0.0) / 0.1, 1.0);
sr = MIN(MAX(diff - 0.1, 0.0) / 0.1, 1.0);
st = 1.0 - sr;
h = st * h0 + sr * mh;
/*
printf("x %.2f l0 %0.5e ref %0.5e diff %.2f sr %.2f st %.2f\n",
ref_node_xyz(ref_node, 0, edg_nodes[0]), l0,
reference_lengthscale, diff, sr, st);
*/
}
ref_matrix_eig(d, 0) = 1.0 / (h * h);

Expand Down

0 comments on commit 047306b

Please sign in to comment.