aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-05-06 17:32:03 +0200
committerThomas White <taw@physics.org>2015-05-06 17:32:03 +0200
commit0dda89a5c477fde732999155701520d27855d291 (patch)
treedce2d1346647744a57a0d36355da4afc2f4249fe /src
parentfcd2dc119213369c84812c93b19c6d639170c4e4 (diff)
Remove crystal backup stuff
Diffstat (limited to 'src')
-rw-r--r--src/post-refinement.c32
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;
}