aboutsummaryrefslogtreecommitdiff
path: root/tests/prediction_gradient_check.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-08-28 17:01:43 +0200
committerThomas White <taw@physics.org>2019-08-28 17:01:43 +0200
commitf8f0ed90db33db65b3263d7013c973ca3f01ccd0 (patch)
tree24966bf5c7087742268f47eae89314b91b9dbb1b /tests/prediction_gradient_check.c
parentb23a17607be7f08b85b3fa4bcc3e66315bc1d8a6 (diff)
prediction_gradient_check, prof2d_check: Set up Spectrum structure
Diffstat (limited to 'tests/prediction_gradient_check.c')
-rw-r--r--tests/prediction_gradient_check.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/prediction_gradient_check.c b/tests/prediction_gradient_check.c
index 85d61ead..2e212083 100644
--- a/tests/prediction_gradient_check.c
+++ b/tests/prediction_gradient_check.c
@@ -418,6 +418,7 @@ int main(int argc, char *argv[])
image.div = 1e-3;
image.bw = 0.01;
image.filename = malloc(256);
+ image.spectrum = spectrum_generate_gaussian(image.lambda, image.bw);
cr = crystal_new();
if ( cr == NULL ) {