aboutsummaryrefslogtreecommitdiff
path: root/src/post-refinement.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-05-11 16:04:56 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:26 +0100
commit921b5deeed01abf68048cb8227a516dfad78edb0 (patch)
tree25a7ffb2cdb40564639a7fb6af4aff72cfa303d3 /src/post-refinement.c
parentdaff801125be1682eb4957ac0579b34a237c7b40 (diff)
Tidy up debug output
Diffstat (limited to 'src/post-refinement.c')
-rw-r--r--src/post-refinement.c26
1 files changed, 10 insertions, 16 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index 5f547865..19462edf 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -386,16 +386,12 @@ void pr_refine(struct image *image, const RefList *full, const char *sym)
{
double max_shift, dev;
int i;
- double ax, ay, az;
- double bx, by, bz;
- double cx, cy, cz;
+ const int verbose = 0;
- cell_get_reciprocal(image->indexed_cell, &ax, &ay, &az,
- &bx, &by, &bz, &cx, &cy, &cz);
- STATUS("At start of post refinement, ax*=%e\n", ax);
-
- dev = mean_partial_dev(image, full, sym);
- STATUS("PR starting dev = %5.2f\n", dev);
+ if ( verbose ) {
+ dev = mean_partial_dev(image, full, sym);
+ STATUS("PR starting dev = %5.2f\n", dev);
+ }
i = 0;
do {
@@ -406,15 +402,13 @@ void pr_refine(struct image *image, const RefList *full, const char *sym)
update_partialities(image, sym, NULL, NULL, NULL, NULL);
- dev = mean_partial_dev(image, full, sym);
- STATUS("PR Iteration %2i: max shift = %5.2f dev = %5.2f\n",
- i+1, max_shift, dev);
+ if ( verbose ) {
+ dev = mean_partial_dev(image, full, sym);
+ STATUS("PR Iteration %2i: max shift = %5.2f"
+ " dev = %5.2f\n", i+1, max_shift, dev);
+ }
i++;
} while ( (max_shift > 0.01) && (i < MAX_CYCLES) );
-
- cell_get_reciprocal(image->indexed_cell, &ax, &ay, &az,
- &bx, &by, &bz, &cx, &cy, &cz);
- STATUS("At end of post refinement, ax*=%e\n", ax);
}