diff options
author | Thomas White <taw@physics.org> | 2018-02-23 13:20:31 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-02-27 17:12:42 +0100 |
commit | 4898423f44c158f569031a59579b244836a48774 (patch) | |
tree | 8a7f77a447f631f061b4cf33b3c92d7653467202 /src | |
parent | df26c722cdcc68f4b3dcc09976ad0075b8e65537 (diff) |
Don't write pgraph.dat if --no-logs
Diffstat (limited to 'src')
-rw-r--r-- | src/partialator.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/partialator.c b/src/partialator.c index d548e956..5c751732 100644 --- a/src/partialator.c +++ b/src/partialator.c @@ -1252,8 +1252,8 @@ int main(int argc, char *argv[]) /* Check rejection and write figures of merit */ check_rejection(crystals, n_crystals, full, max_B); show_all_residuals(crystals, n_crystals, full); - write_pgraph(full, crystals, n_crystals, 0, ""); if ( !no_pr && !no_logs ) { + write_pgraph(full, crystals, n_crystals, 0, ""); write_logs_parallel(crystals, n_crystals, full, 0, nthreads); } @@ -1279,7 +1279,10 @@ 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, i+1, ""); + + if ( !no_logs ) { + write_pgraph(full, crystals, n_crystals, i+1, ""); + } if ( output_everycycle ) { @@ -1324,8 +1327,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, -1, ""); if ( !no_pr && !no_logs ) { + write_pgraph(full, crystals, n_crystals, -1, ""); write_logs_parallel(crystals, n_crystals, full, -1, nthreads); } |