aboutsummaryrefslogtreecommitdiff
path: root/src/sfac.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2009-11-17 17:04:00 +0100
committerThomas White <taw@physics.org>2009-11-17 17:04:00 +0100
commit79d63b556b771d4fb4dc4073c10891f26739d565 (patch)
tree90dd74656fed448feb11b51319bb6d21a03f9d6f /src/sfac.h
parent9c95cc556f924cbbba4e453c5582f24d3ac31955 (diff)
Move load_molecule to sfac
Diffstat (limited to 'src/sfac.h')
-rw-r--r--src/sfac.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/sfac.h b/src/sfac.h
index afa84f84..81b90234 100644
--- a/src/sfac.h
+++ b/src/sfac.h
@@ -18,6 +18,28 @@
#include <complex.h>
+
+struct mol_species
+{
+ char species[4]; /* Species name */
+ int n_atoms; /* Number of atoms of this species */
+
+ float x[32*1024];
+ float y[32*1024];
+ float z[32*1024];
+ float occ[32*1024];
+ float B[32*1024];
+};
+
+
+struct molecule
+{
+ int n_species;
+ struct mol_species *species[32];
+};
+
+
extern double complex get_sfac(const char *n, double s, double en);
+extern struct molecule *load_molecule(void);
#endif /* SFAC_H */