diff options
author | Thomas White <taw@physics.org> | 2019-06-26 16:58:33 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-07-17 09:22:23 +0200 |
commit | a7f33323e50eb5eb83ad381b87a2116625c16346 (patch) | |
tree | c7119116032d98c87397fe39472af71bb97e3a27 /src/post-refinement.c | |
parent | 587034d5aebb3c1d89d17e2ee139c06526b14840 (diff) |
Improve column headings in logs
Diffstat (limited to 'src/post-refinement.c')
-rw-r--r-- | src/post-refinement.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c index 3a9dba2c..6661e091 100644 --- a/src/post-refinement.c +++ b/src/post-refinement.c @@ -467,8 +467,8 @@ static void write_angle_grid(Crystal *cr, const RefList *full, fh = fopen(fn, "w"); if ( fh != NULL ) { double v1, v2; - fprintf(fh, "%e %e %e %s\n", -5.0e-3, 5.0e-3, 0.0, "ang1/rad"); - fprintf(fh, "%e %e %e %s\n", -5.0e-3, 5.0e-3, 0.0, "ang2/rad"); + fprintf(fh, "%e %e %e %s\n", -5.0e-3, 5.0e-3, 0.0, "rot_x/rad"); + fprintf(fh, "%e %e %e %s\n", -5.0e-3, 5.0e-3, 0.0, "rot_y/rad"); for ( v2=-5.0e-3; v2<=5.0e-3; v2+=0.25e-3 ) { int first=1; for ( v1=-5.0e-3; v1<=5.0e-3; v1+=0.25e-3 ) { @@ -609,11 +609,11 @@ static void do_pr_refine(Crystal *cr, const RefList *full, snprintf(fn, 63, "pr-logs/crystal%i-cycle%i.log", serial, cycle); fh = fopen(fn, "w"); if ( fh != NULL ) { - fprintf(fh, "iter FoM FreeFoM ang1 " - "ang2 radius wavelength\n"); + fprintf(fh, "iter FoM FreeFoM rotx/rad " + "roty/rad radius/m wavelength/m\n"); fprintf(fh, "%5i %10.8f %10.8f %10.8f %10.8f %e %e\n", n_iter, fom, freefom, - rad2deg(alter.rot_x), rad2deg(alter.rot_y), + alter.rot_x, alter.rot_y, crystal_get_profile_radius(cr)+alter.delta_R, crystal_get_image(cr)->lambda+alter.delta_wave); } @@ -631,7 +631,7 @@ static void do_pr_refine(Crystal *cr, const RefList *full, if ( fh != NULL ) { fprintf(fh, "%5i %10.8f %10.8f %10.8f %10.8f %e %e\n", n_iter, fom, freefom, - rad2deg(alter.rot_x), rad2deg(alter.rot_y), + alter.rot_x, alter.rot_y, crystal_get_profile_radius(cr)+alter.delta_R, crystal_get_image(cr)->lambda+alter.delta_wave); } |