aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-09-18 16:40:29 +0200
committerThomas White <taw@physics.org>2023-09-18 16:40:29 +0200
commit5231f5b78093da778e37172fe78103acbbd27c1f (patch)
tree8e342f89841e5bb4dc7b860cd59695567c74ee8b /tests
parentcdbec08e31dbd7529d98a83bfee6f5c551df4778 (diff)
tests/gradient_*: Use r_dev instead of get_exerr
We explicitly want the gradient of the residual, nothing else.
Diffstat (limited to 'tests')
-rw-r--r--tests/gradient_check_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gradient_check_utils.c b/tests/gradient_check_utils.c
index 6b641b9d..67ba255e 100644
--- a/tests/gradient_check_utils.c
+++ b/tests/gradient_check_utils.c
@@ -49,7 +49,7 @@ double **make_dev_list(struct reflpeak *rps, int n_refls, struct detgeom *det)
vals[2] = malloc(n_refls*sizeof(double));
for ( i=0; i<n_refls; i++ ) {
- vals[0][i] = get_exerr(rps[i].refl);
+ vals[0][i] = r_dev(&rps[i]);
vals[1][i] = fs_dev(&rps[i], det);
vals[2][i] = ss_dev(&rps[i], det);
}