Skip to content

Commit

Permalink
improves debug stdout for tuning
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 6f96c2d commit c6d64fb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/ref_phys.c
Expand Up @@ -1080,12 +1080,13 @@ REF_FCN REF_STATUS ref_phys_yplus_metric(REF_GRID ref_grid, REF_DBL *metric,
}
ref_matrix_eig(d, 0) = 1.0 / (h0 * h0);

printf("x %.2f l1 %.5e l2 %.5e diff %.2f s %.2f %.2f h0 %.5e mh %.5e\n",
ref_node_xyz(ref_grid_node(ref_grid), 0, edg_nodes[0]),
lengthscale[edg_nodes[0]], lengthscale2[edg_nodes[0]],
ABS(lengthscale[edg_nodes[0]] - lengthscale2[edg_nodes[0]]) /
lengthscale[edg_nodes[0]] * 100,
s1, s2, h0, mh);
printf(
"x %.4f l1 %.3e l2 %.3e diff %.4f s %.2f %.2f t %.3e m %.3e h %.3e\n",
ref_node_xyz(ref_grid_node(ref_grid), 0, edg_nodes[0]),
lengthscale[edg_nodes[0]], lengthscale2[edg_nodes[0]],
ABS(lengthscale[edg_nodes[0]] - lengthscale2[edg_nodes[0]]) /
lengthscale[edg_nodes[0]],
s1, s2, target * l1 / equilateral_altitude, mh, h0);

ref_matrix_vec(d, 0, 2) = 0.0;
ref_matrix_vec(d, 1, 2) = 0.0;
Expand Down

0 comments on commit c6d64fb

Please sign in to comment.