aboutsummaryrefslogtreecommitdiff
path: root/tests/gradient_check.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2024-04-18 14:32:14 +0200
committerThomas White <taw@physics.org>2024-04-18 14:32:14 +0200
commit52bde38abbcb53d163355a71fc9e99332ffe3dee (patch)
tree54bf334103708bcbf0b821c583b06f66769edf22 /tests/gradient_check.c
parent536d1a563e5c93cbbefb3556ea897acaf8fa70ce (diff)
parent62a2fdee1b7e69a1fe1ecb58e286866c41b6bb81 (diff)
Merge branch 'julia'
Diffstat (limited to 'tests/gradient_check.c')
-rw-r--r--tests/gradient_check.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/gradient_check.c b/tests/gradient_check.c
index 001bff7a..0722b849 100644
--- a/tests/gradient_check.c
+++ b/tests/gradient_check.c
@@ -98,7 +98,7 @@ int main(int argc, char *argv[])
#ifdef CHANGE_CELL
double asx, asy, asz, bsx, bsy, bsz, csx, csy, csz;
- UnitCell *cell = crystal_get_cell(image.crystals[0]);
+ UnitCell *cell = crystal_get_cell(image.crystals[0].cr);
step = 0.5e5;
cell_get_reciprocal(cell, &asx, &asy, &asz,
&bsx, &bsy, &bsz,
@@ -115,7 +115,7 @@ int main(int argc, char *argv[])
return 1;
}
- update_predictions(image.crystals[0]);
+ update_predictions(image.crystals[0].refls, image.crystals[0].cr, &image);
after = make_dev_list(rps, n_refls, image.detgeom);
for ( i=0; i<n_refls; i++ ) {
@@ -124,11 +124,11 @@ int main(int argc, char *argv[])
double obs[3];
calc[0] = r_gradient(TEST_GPARAM, rps[i].refl,
- crystal_get_cell(image.crystals[0]),
+ crystal_get_cell(image.crystals[0].cr),
image.lambda);
fs_ss_gradient(TEST_GPARAM, rps[i].refl,
- crystal_get_cell(image.crystals[0]),
+ crystal_get_cell(image.crystals[0].cr),
&image.detgeom->panels[rps[i].peak->pn],
panel_matrices[rps[i].peak->pn], cx, cy, cz,
&calc[1], &calc[2]);