diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/partial_sim.c | 4 | ||||
-rw-r--r-- | src/post-refinement.c | 6 |
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); |