diff options
author | Thomas White <taw@physics.org> | 2011-05-11 16:04:56 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:26 +0100 |
commit | 921b5deeed01abf68048cb8227a516dfad78edb0 (patch) | |
tree | 25a7ffb2cdb40564639a7fb6af4aff72cfa303d3 /src | |
parent | daff801125be1682eb4957ac0579b34a237c7b40 (diff) |
Tidy up debug output
Diffstat (limited to 'src')
-rw-r--r-- | src/partial_sim.c | 2 | ||||
-rw-r--r-- | src/post-refinement.c | 26 |
2 files changed, 10 insertions, 18 deletions
diff --git a/src/partial_sim.c b/src/partial_sim.c index e83c4521..a412330c 100644 --- a/src/partial_sim.c +++ b/src/partial_sim.c @@ -39,9 +39,7 @@ static void mess_up_cell(UnitCell *cell) double cx, cy, cz; cell_get_reciprocal(cell, &ax, &ay, &az, &bx, &by, &bz, &cx, &cy, &cz); - STATUS("The correct ax* is %e\n", ax); ax += 0.05*ax; - STATUS("The starting ax* is %e\n", ax); cell_set_reciprocal(cell, ax, ay, az, bx, by, bz, cx, cy, cz); } 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); } |