aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-02-21 15:19:52 +0100
committerThomas White <taw@physics.org>2018-02-27 17:12:42 +0100
commit81a5fdd798a956391b8645c820f4cbb1f0136504 (patch)
treea4b0e22c91353c348562eeda7a100bc667d663f6 /src
parent4ed5ff07554b5f76b06de3a61a3c6eb7d83d1653 (diff)
Don't write logs if --no-pr
It just takes too long.
Diffstat (limited to 'src')
-rw-r--r--src/partialator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/partialator.c b/src/partialator.c
index 5789d58b..ec9ea40e 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -1263,7 +1263,7 @@ int main(int argc, char *argv[])
check_rejection(crystals, n_crystals, full, max_B);
show_all_residuals(crystals, n_crystals, full);
write_pgraph(full, crystals, n_crystals, 0, "");
- write_logs_parallel(crystals, n_crystals, full, 0, nthreads);
+ if ( !no_pr ) write_logs_parallel(crystals, n_crystals, full, 0, nthreads);
/* Iterate */
for ( i=0; i<n_iter; i++ ) {
@@ -1336,7 +1336,7 @@ 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, -1, "");
- write_logs_parallel(crystals, n_crystals, full, -1, nthreads);
+ if ( !no_pr ) write_logs_parallel(crystals, n_crystals, full, -1, nthreads);
/* Output results */
STATUS("Writing overall results to %s\n", outfile);