diff options
Diffstat (limited to 'src/post-refinement.c')
-rw-r--r-- | src/post-refinement.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c index 765f5cab..8e6f6108 100644 --- a/src/post-refinement.c +++ b/src/post-refinement.c @@ -485,39 +485,11 @@ static double guide_dev(Crystal *cr, const RefList *full) } -struct param_backup -{ - UnitCell *cell; - double profile_radius; - double div; -}; - - -static struct param_backup backup_crystal(Crystal *cr) -{ - struct param_backup b; - struct image *image = crystal_get_image(cr); - - b.cell = cell_new_from_cell(crystal_get_cell(cr)); - b.profile_radius = crystal_get_profile_radius(cr); - b.div = image->div; - - return b; -} - - -static void free_backup_crystal(struct param_backup b) -{ - cell_free(b.cell); -} - - struct prdata pr_refine(Crystal *cr, const RefList *full, PartialityModel pmodel) { double dev; int i; - struct param_backup backup; const int verbose = 0; struct prdata prdata; double mean_p_change = 0.0; @@ -535,8 +507,6 @@ struct prdata pr_refine(Crystal *cr, const RefList *full, dev); } - backup = backup_crystal(cr); - i = 0; do { @@ -561,8 +531,6 @@ struct prdata pr_refine(Crystal *cr, const RefList *full, } while ( (mean_p_change > 0.01) && (i < MAX_CYCLES) ); - free_backup_crystal(backup); - if ( crystal_get_user_flag(cr) == 0 ) { prdata.refined = 1; } |