From 0074908ce3f57c650e50044866c6047bf8452a82 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 9 Sep 2015 17:39:05 +0200 Subject: partialator: Ensure initialisation of residuals --- src/post-refinement.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/post-refinement.c') 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; -- cgit v1.2.3