aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-09-09 17:39:05 +0200
committerThomas White <taw@physics.org>2015-09-09 17:43:05 +0200
commit0074908ce3f57c650e50044866c6047bf8452a82 (patch)
tree18f304a76be72381f56423baf45753f26492fa8e
parent95c89499a52cedc76a496b7f73f2c6ba573ffb0e (diff)
partialator: Ensure initialisation of residuals
-rw-r--r--src/post-refinement.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index 1923ff4c..fba301e6 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -1066,6 +1066,14 @@ void refine_all(Crystal **crystals, int n_crystals,
task_defaults.prdata.n_filtered = 0;
task_defaults.no_scale = no_scale;
task_defaults.no_pr = no_pr;
+ task_defaults.prdata.initial_residual = 0.0;
+ task_defaults.prdata.initial_free_residual = 0.0;
+ task_defaults.prdata.initial_log_residual = 0.0;
+ task_defaults.prdata.initial_free_log_residual = 0.0;
+ task_defaults.prdata.final_residual = 0.0;
+ task_defaults.prdata.final_free_residual = 0.0;
+ task_defaults.prdata.final_log_residual = 0.0;
+ task_defaults.prdata.final_free_log_residual = 0.0;
qargs.task_defaults = task_defaults;
qargs.n_started = 0;