aboutsummaryrefslogtreecommitdiff
path: root/src/diffraction.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-01-22 15:50:15 +0100
committerThomas White <taw@physics.org>2010-01-22 15:50:15 +0100
commitef9281fb30a07b8ee099ada3e1f7a0a10cbca5c0 (patch)
tree42cee1574cb21a2c67796d6fa715631d56e6fd1e /src/diffraction.c
parent59e333ee9e40ae0be0af08fe0eb739f1babf5771 (diff)
Remove 'xray_energy' to leave a single point of truth for wavelength
Diffstat (limited to 'src/diffraction.c')
-rw-r--r--src/diffraction.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/diffraction.c b/src/diffraction.c
index 36717cfd..a0248450 100644
--- a/src/diffraction.c
+++ b/src/diffraction.c
@@ -162,7 +162,8 @@ void get_diffraction(struct image *image, int na, int nb, int nc)
* sizeof(double complex));
if ( image->molecule->reflections == NULL ) {
- get_reflections_cached(image->molecule, image->xray_energy);
+ get_reflections_cached(image->molecule,
+ ph_lambda_to_en(image->lambda));
}
for ( x=0; x<image->width; x++ ) {