aboutsummaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-10-27 11:39:14 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:04 +0100
commit679af12a3b4fea2dbdb39cfc56272816f51a2c79 (patch)
tree7ffc38d596b6b8127ade29d7583a58fa231bd57e /src/index.c
parent80e6d044ba9237d2778d91bbb585aa93297a135e (diff)
Take nominal photon energy from file
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/index.c b/src/index.c
index 97cf3887..0c656042 100644
--- a/src/index.c
+++ b/src/index.c
@@ -42,7 +42,8 @@ static IndexingPrivate *indexing_private(IndexingMethod indm)
IndexingPrivate *prepare_indexing(IndexingMethod indm, UnitCell *cell,
- const char *filename, struct detector *det)
+ const char *filename, struct detector *det,
+ double nominal_photon_energy)
{
switch ( indm ) {
case INDEXING_NONE :
@@ -50,7 +51,8 @@ IndexingPrivate *prepare_indexing(IndexingMethod indm, UnitCell *cell,
case INDEXING_DIRAX :
return indexing_private(indm);
case INDEXING_TEMPLATE :
- return generate_templates(cell, filename, det);
+ return generate_templates(cell, filename, det,
+ nominal_photon_energy);
}
return 0;
}