aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-06-27 13:23:44 +0200
committerThomas White <taw@physics.org>2019-07-17 09:22:23 +0200
commitaaed4bf95fe7e525f5e9c26a4d5b80b27bde83bb (patch)
tree74e1492490ff8cf0d8a8355ac35655f965c423c9 /src
parenta7f33323e50eb5eb83ad381b87a2116625c16346 (diff)
Fix grid scan boundaries to put plot-pr-contourmap's red dot in the right place
Diffstat (limited to 'src')
-rw-r--r--src/post-refinement.c8
1 files 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;