From 4898423f44c158f569031a59579b244836a48774 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 23 Feb 2018 13:20:31 +0100 Subject: Don't write pgraph.dat if --no-logs --- src/partialator.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/partialator.c') 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); } -- cgit v1.2.3