aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-07-04 14:03:35 +0200
committerThomas White <taw@physics.org>2023-07-28 13:22:05 +0200
commit81e75a6820a01cd5b4d481e3e24c8a54b5bc77e5 (patch)
tree2eb53753ba038fe714fff2e99f43d2c3bedca455 /tests
parentef2a5b59b78ecf7df4b72795e0f08eec345b5b82 (diff)
Calculate panel Minvs
Diffstat (limited to 'tests')
-rw-r--r--tests/gradient_cell_asx.c3
-rw-r--r--tests/gradient_panel_x.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/gradient_cell_asx.c b/tests/gradient_cell_asx.c
index c9c00ab0..1f37f7b6 100644
--- a/tests/gradient_cell_asx.c
+++ b/tests/gradient_cell_asx.c
@@ -53,9 +53,10 @@ int main(int argc, char *argv[])
double asx, asy, asz;
double bsx, bsy, bsz;
double csx, csy, csz;
- gsl_matrix *panel_matrices[64];
+ gsl_matrix **panel_matrices;
rps = make_test_image(&n_refls, &image);
+ panel_matrices = make_panel_minvs(image.detgeom);
before = make_dev_list(rps, n_refls, image.detgeom);
image.detgeom->panels[0].cnx += step;
diff --git a/tests/gradient_panel_x.c b/tests/gradient_panel_x.c
index 012df9e1..ecadabdb 100644
--- a/tests/gradient_panel_x.c
+++ b/tests/gradient_panel_x.c
@@ -51,9 +51,10 @@ int main(int argc, char *argv[])
int n_wrong_obsr = 0;
int fail = 0;
double step = 0.1; /* Pixels */
- gsl_matrix *panel_matrices[64];
+ gsl_matrix **panel_matrices;
rps = make_test_image(&n_refls, &image);
+ panel_matrices = make_panel_minvs(image.detgeom);
before = make_dev_list(rps, n_refls, image.detgeom);
image.detgeom->panels[0].cnx += step;