diff options
author | Thomas White <taw@physics.org> | 2018-02-02 17:45:08 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-02-27 17:12:42 +0100 |
commit | 83eabebc964981d997561c2a3b97560e0ee9d5d9 (patch) | |
tree | 47a93a5305a215fa35f3eeb9df662af5fda83100 /src | |
parent | d2a12ab3570b05ea3ad9719191c01d732bf1b580 (diff) |
Write logs for every twentieth crystal
Diffstat (limited to 'src')
-rw-r--r-- | src/post-refinement.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c index e65ecf9e..b11ad57e 100644 --- a/src/post-refinement.c +++ b/src/post-refinement.c @@ -503,7 +503,7 @@ static void do_pr_refine(Crystal *cr, const RefList *full, int r; double G; double residual_start, residual_free_start; - const int write_logs = 1; + int write_logs = 1; FILE *fh = NULL; try_reindex(cr, full); @@ -516,6 +516,8 @@ static void do_pr_refine(Crystal *cr, const RefList *full, residual_start, residual_free_start); } + if ( serial % 20 ) write_logs = 0; + /* The parameters to be refined */ rv[n_params++] = GPARAM_ANG1; rv[n_params++] = GPARAM_ANG2; |