aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/geometry.c10
-rw-r--r--src/geometry.h3
-rw-r--r--src/indexamajig.c2
-rw-r--r--src/partial_sim.c2
4 files changed, 8 insertions, 9 deletions
diff --git a/src/geometry.c b/src/geometry.c
index b53e1aa7..e0714694 100644
--- a/src/geometry.c
+++ b/src/geometry.c
@@ -122,13 +122,14 @@ static double partiality(double r1, double r2, double r)
}
-static int check_reflection(struct image *image, double mres, int output,
+static int check_reflection(struct image *image, double mres,
RefList *reflections,
signed int h, signed int k, signed int l,
double asx, double asy, double asz,
double bsx, double bsy, double bsz,
double csx, double csy, double csz)
{
+ const int output = 0;
double xl, yl, zl;
double ds, ds_sq;
double rlow, rhigh; /* "Excitation error" */
@@ -229,8 +230,7 @@ static int check_reflection(struct image *image, double mres, int output,
}
-RefList *find_intersections(struct image *image, UnitCell *cell,
- int output)
+RefList *find_intersections(struct image *image, UnitCell *cell)
{
double asx, asy, asz;
double bsx, bsy, bsz;
@@ -265,7 +265,7 @@ RefList *find_intersections(struct image *image, UnitCell *cell,
for ( h=-hmax; h<=hmax; h++ ) {
for ( k=-kmax; k<=kmax; k++ ) {
for ( l=-lmax; l<=lmax; l++ ) {
- check_reflection(image, mres, output, reflections, h, k, l,
+ check_reflection(image, mres, reflections, h, k, l,
asx,asy,asz,bsx,bsy,bsz,csx,csy,csz);
}
}
@@ -320,7 +320,7 @@ void update_partialities(struct image *image, const char *sym,
RefListIterator *iter;
RefList *predicted;
- predicted = find_intersections(image, image->indexed_cell, 0);
+ predicted = find_intersections(image, image->indexed_cell);
for ( refl = first_refl(predicted, &iter);
refl != NULL;
diff --git a/src/geometry.h b/src/geometry.h
index 6f45a2c8..15c6e552 100644
--- a/src/geometry.h
+++ b/src/geometry.h
@@ -19,8 +19,7 @@
#include "reflist.h"
-extern RefList *find_intersections(struct image *image, UnitCell *cell,
- int output);
+extern RefList *find_intersections(struct image *image, UnitCell *cell);
extern void update_partialities(struct image *image, const char *sym,
ReflItemList *scalable,
diff --git a/src/indexamajig.c b/src/indexamajig.c
index 00a7e3e8..f1c39a30 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -322,7 +322,7 @@ static void process_image(void *pp, int cookie)
image.bw = beam->bandwidth;
image.profile_radius = 0.0001e9;
image.reflections = find_intersections(&image,
- image.indexed_cell, 0);
+ image.indexed_cell);
integrate_reflections(&image, config_polar,
pargs->static_args.config_closer,
diff --git a/src/partial_sim.c b/src/partial_sim.c
index 937e3a1b..2a412ae4 100644
--- a/src/partial_sim.c
+++ b/src/partial_sim.c
@@ -282,7 +282,7 @@ int main(int argc, char *argv[])
snprintf(image.filename, 255, "(simulated %i)", i);
image.reflections = find_intersections(&image,
- image.indexed_cell, 0);
+ image.indexed_cell);
calculate_partials(image.reflections, osf, full, sym);
/* Give a slightly incorrect cell in the stream */