aboutsummaryrefslogtreecommitdiff
path: root/src/partialator.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-02-09 16:08:27 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:14 +0100
commitda51525409db6ac1ac41460d2ce5a4eea26775de (patch)
treec0dd4bbe931f614e395c28b07e18ce1273683eef /src/partialator.c
parent467009dbfad7d41231067baa5961e02f8e31d8d0 (diff)
The per-shot wavelength is needed for scaling and post refinement
Diffstat (limited to 'src/partialator.c')
-rw-r--r--src/partialator.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/partialator.c b/src/partialator.c
index 3251f7e8..71f2831a 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -277,10 +277,11 @@ int main(int argc, char *argv[])
RefList *transfer;
Reflection *refl;
RefListIterator *iter;
+ double ph_en;
- if ( find_chunk(fh, &cell, &filename) == 1 ) {
- ERROR("Couldn't get all of the filenames and cells"
- " from the input stream.\n");
+ if ( find_chunk(fh, &cell, &filename, &ph_en) == 1 ) {
+ ERROR("Couldn't get all of the filenames, cells and"
+ "wavelengths from the input stream.\n");
return 1;
}
@@ -294,6 +295,7 @@ int main(int argc, char *argv[])
images[i].osf = 1.0;
images[i].profile_radius = 0.005e9;
images[i].reflections = reflist_new();
+ images[i].lambda = ph_en_to_lambda(eV_to_J(ph_en));
/* Muppet proofing */
images[i].data = NULL;