aboutsummaryrefslogtreecommitdiff
path: root/src/sfac.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2009-11-24 14:35:44 +0100
committerThomas White <taw@physics.org>2009-11-24 14:35:44 +0100
commitde7b663ec080453867061400f9c59bd8fce9b6de (patch)
treeac504efe7cdc398dd001264fd1776b78a45f45c5 /src/sfac.h
parenta2ba8dccb91ec900e45280d1f596507198007419 (diff)
Only calculate molecular transform at Bragg positions
Diffstat (limited to 'src/sfac.h')
-rw-r--r--src/sfac.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sfac.h b/src/sfac.h
index f88729f4..fc4b2bd9 100644
--- a/src/sfac.h
+++ b/src/sfac.h
@@ -18,6 +18,8 @@
#include <complex.h>
+#include "cell.h"
+
struct mol_species
{
@@ -37,6 +39,13 @@ struct molecule
int n_species;
struct mol_species *species[32];
+ /* Unit cell */
+ UnitCell *cell;
+
+ /* Reflection intensities at Bragg positions */
+ double complex *reflections;
+
+ /* Offset to molecule's centre of scattering power */
double xc;
double yc;
double zc;
@@ -45,5 +54,6 @@ struct molecule
extern double complex get_sfac(const char *n, double s, double en);
extern struct molecule *load_molecule(void);
+extern double complex *get_reflections(struct molecule *mol, double en);
#endif /* SFAC_H */