diff options
author | Thomas White <taw@physics.org> | 2010-04-01 16:12:11 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-04-01 16:12:11 +0200 |
commit | fced9d2b5b9154205886e12b5cde73292db3b59d (patch) | |
tree | d50ce7b6c6485e16910d3386f74a9c52129f10c0 /src/diffraction.c | |
parent | 4ef558e6c6b1bf7be1a28b945834f8c5fcb65dd0 (diff) |
indexamajig: Introduce multithreading
Diffstat (limited to 'src/diffraction.c')
-rw-r--r-- | src/diffraction.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/diffraction.c b/src/diffraction.c index 675aa148..ad69c7a3 100644 --- a/src/diffraction.c +++ b/src/diffraction.c @@ -70,8 +70,8 @@ static double lattice_factor(struct rvec q, double ax, double ay, double az, /* Look up the structure factor for the nearest Bragg condition */ -static double molecule_factor(double *intensities, unsigned int *counts, - struct rvec q, +static double molecule_factor(const double *intensities, + const unsigned int *counts, struct rvec q, double ax, double ay, double az, double bx, double by, double bz, double cx, double cy, double cz) @@ -177,8 +177,8 @@ struct rvec get_q(struct image *image, unsigned int xs, unsigned int ys, void get_diffraction(struct image *image, int na, int nb, int nc, - double *intensities, unsigned int *counts, UnitCell *cell, - int do_water) + const double *intensities, const unsigned int *counts, + UnitCell *cell, int do_water) { unsigned int xs, ys; double ax, ay, az; |