From aaed4bf95fe7e525f5e9c26a4d5b80b27bde83bb Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 27 Jun 2019 13:23:44 +0200 Subject: Fix grid scan boundaries to put plot-pr-contourmap's red dot in the right place --- src/post-refinement.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/post-refinement.c b/src/post-refinement.c index 6661e091..3da88752 100644 --- a/src/post-refinement.c +++ b/src/post-refinement.c @@ -469,9 +469,9 @@ static void write_angle_grid(Crystal *cr, const RefList *full, double v1, v2; 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 ) { + for ( v2=-5.0e-3; v2<=5.1e-3; v2+=0.25e-3 ) { int first=1; - for ( v1=-5.0e-3; v1<=5.0e-3; v1+=0.25e-3 ) { + for ( v1=-5.0e-3; v1<=5.1e-3; v1+=0.25e-3 ) { double res; struct rf_alteration alter; alter.rot_x = v1; @@ -529,9 +529,9 @@ static void write_radius_grid(Crystal *cr, const RefList *full, double v1, v2; fprintf(fh, "%e %e %e %s\n", -4e-13, 4e-13, 0.0, "wavelength change/m"); fprintf(fh, "%e %e %e %s\n", -2e6, 2e6, 0.0, "radius change/m^-1"); - for ( v2=-2e6; v2<=2e6; v2+=40000 ) { + for ( v2=-2e6; v2<=2.001e6; v2+=100000 ) { int first=1; - for ( v1=-4e-13; v1<=4e-13; v1+=8e-15 ) { + for ( v1=-4e-13; v1<=4.001e-13; v1+=2e-14 ) { double res; struct rf_alteration alter; alter.rot_x = 0.0; -- cgit v1.2.3