diff options
author | Thomas White <taw@physics.org> | 2015-05-19 14:57:20 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-05-19 14:59:10 +0200 |
commit | 511d35254618675938f3c3cc57768a13db21d9c3 (patch) | |
tree | b0626d8a1bfc696c22a8848a68b57887724ed274 /src/post-refinement.c | |
parent | 9a21ae0c6d0ae89be28ca0e2878b82faa1b8ce05 (diff) |
partialator: Show initial and final residuals (including free)
Diffstat (limited to 'src/post-refinement.c')
-rw-r--r-- | src/post-refinement.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c index 27a74e76..ccf010e2 100644 --- a/src/post-refinement.c +++ b/src/post-refinement.c @@ -562,6 +562,8 @@ struct prdata pr_refine(Crystal *cr, const RefList *full, if ( crystal_get_user_flag(cr) != 0 ) return prdata; old_dev = residual(cr, full, 0, 0); + prdata.initial_free_residual = residual(cr, full, 0, 1); + prdata.initial_residual = old_dev; if ( verbose ) { STATUS("\n"); /* Deal with progress bar */ @@ -602,6 +604,8 @@ struct prdata pr_refine(Crystal *cr, const RefList *full, if ( crystal_get_user_flag(cr) == 0 ) { prdata.refined = 1; } + prdata.final_free_residual = residual(cr, full, 0, 1); + prdata.final_residual = old_dev; if ( verbose ) { STATUS("Final G=%.2f, B=%e\n", crystal_get_osf(cr), |