aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-02-27 16:46:22 +0100
committerThomas White <taw@physics.org>2018-02-27 17:12:42 +0100
commit5d80b28ccbf55e60b27fadd6348f8fd49d6507eb (patch)
treeeb9c941c95fcc0bac43bd9b7b17857b239bd99cd
parentbd252a6897f3fe1d626c3c23fc9b4b62288f1bb2 (diff)
Use "iteration F" in logs
-rw-r--r--src/partialator.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/partialator.c b/src/partialator.c
index f4a4bfb7..3a4d2b31 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -604,7 +604,7 @@ static void select_free_reflections(RefList *list, gsl_rng *rng)
static void write_to_pgraph(FILE *fh, RefList *list, RefList *full, Crystal *cr,
- int fr, int inum)
+ int fr, signed int inum)
{
Reflection *refl;
RefListIterator *iter;
@@ -657,7 +657,8 @@ static void write_to_pgraph(FILE *fh, RefList *list, RefList *full, Crystal *cr,
}
-static void write_specgraph(RefList *full, Crystal *crystal, int in)
+static void write_specgraph(RefList *full, Crystal *crystal, signed int in,
+ const char *suff)
{
FILE *fh;
char tmp[256];
@@ -730,7 +731,7 @@ static void write_specgraph(RefList *full, Crystal *crystal, int in)
static void write_pgraph(RefList *full, Crystal **crystals, int n_crystals,
- int iter, const char *suff)
+ signed int iter, const char *suff)
{
FILE *fh;
char tmp[256];
@@ -1348,8 +1349,8 @@ int main(int argc, char *argv[])
/* Write final figures of merit (no rejection any more) */
show_all_residuals(crystals, n_crystals, full);
- write_pgraph(full, crystals, n_crystals, n_iter+1, "");
- write_specgraph(full, crystals[0], n_iter+1, "");
+ write_pgraph(full, crystals, n_crystals, -1, "");
+ write_specgraph(full, crystals[0], -1, "");
STATUS("Final profile radius: %e\n", crystal_get_profile_radius(crystals[0]));
/* Output results */