aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-04-29 11:47:16 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:24 +0100
commit223118e5c152e36f04bf678f54d86d4c4d0d538f (patch)
tree2266f612cce74d03b3ffe78557db1b89092f8800
parentc4461bd57014f406113b96b0f100d6f6fac0591a (diff)
Refine against reciprocal space cell, not real space
-rw-r--r--src/partial_sim.c4
-rw-r--r--src/post-refinement.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/partial_sim.c b/src/partial_sim.c
index 44591b26..53018026 100644
--- a/src/partial_sim.c
+++ b/src/partial_sim.c
@@ -38,9 +38,9 @@ static void mess_up_cell(UnitCell *cell)
double bx, by, bz;
double cx, cy, cz;
- cell_get_cartesian(cell, &ax, &ay, &az, &bx, &by, &bz, &cx, &cy, &cz);
+ cell_get_reciprocal(cell, &ax, &ay, &az, &bx, &by, &bz, &cx, &cy, &cz);
ax += 0.008*ax;
- cell_set_cartesian(cell, ax, ay, az, bx, by, bz, cx, cy, cz);
+ cell_set_reciprocal(cell, ax, ay, az, bx, by, bz, cx, cy, cz);
}
diff --git a/src/post-refinement.c b/src/post-refinement.c
index 02744e9e..f94a2fc5 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -388,7 +388,7 @@ static void plot_curve(struct image *image, const RefList *full,
double shval, origval;
int i;
- cell_get_cartesian(cell, &ax, &ay, &az, &bx, &by, &bz, &cx, &cy, &cz);
+ cell_get_reciprocal(cell, &ax, &ay, &az, &bx, &by, &bz, &cx, &cy, &cz);
shval = 0.001*ax;
origval = ax;
@@ -396,10 +396,10 @@ static void plot_curve(struct image *image, const RefList *full,
double dev;
- cell_get_cartesian(cell, &ax, &ay, &az, &bx,
+ cell_get_reciprocal(cell, &ax, &ay, &az, &bx,
&by, &bz, &cx, &cy, &cz);
ax = origval + (double)i*shval;
- cell_set_cartesian(cell, ax, ay, az, bx, by, bz, cx, cy, cz);
+ cell_set_reciprocal(cell, ax, ay, az, bx, by, bz, cx, cy, cz);
update_partialities_and_asymm(image, sym,
NULL, NULL, NULL, NULL);