diff options
author | Thomas White <taw@physics.org> | 2009-11-24 14:35:44 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2009-11-24 14:35:44 +0100 |
commit | de7b663ec080453867061400f9c59bd8fce9b6de (patch) | |
tree | ac504efe7cdc398dd001264fd1776b78a45f45c5 /src/sfac.h | |
parent | a2ba8dccb91ec900e45280d1f596507198007419 (diff) |
Only calculate molecular transform at Bragg positions
Diffstat (limited to 'src/sfac.h')
-rw-r--r-- | src/sfac.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 */ |