From 02dd5362fa9f0eb8e2f6df45511347ee3533fdd2 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 27 Oct 2020 16:06:32 +0100 Subject: partialator: Don't copy detgeom Detector geometry is not used for scaling/post-refinement --- src/partialator.c | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/src/partialator.c b/src/partialator.c index 40c7c4eb..61cf979b 100644 --- a/src/partialator.c +++ b/src/partialator.c @@ -920,33 +920,6 @@ static void write_logs_parallel(Crystal **crystals, int n_crystals, } -static struct detgeom *copy_detgeom(const struct detgeom *old) -{ - struct detgeom *new; - int np; - int i; - - new = malloc(sizeof(struct detgeom)); - if ( new == NULL ) return NULL; - - np = old->n_panels; - new->panels = malloc(np * sizeof(struct detgeom_panel)); - if ( new->panels == NULL ) { - free(new); - return NULL; - } - - new->n_panels = np; - - for ( i=0; ipanels[i] = old->panels[i]; - new->panels[i].name = strdup(old->panels[i].name); - } - - return new; -} - - int main(int argc, char *argv[]) { int c; @@ -1451,7 +1424,7 @@ int main(int argc, char *argv[]) image_for_crystal->filename = strdup(image->filename); image_for_crystal->ev = safe_strdup(image->ev); - image_for_crystal->detgeom = copy_detgeom(image->detgeom); + image_for_crystal->detgeom = NULL; image_for_crystal->features = NULL; image_for_crystal->spectrum = NULL; image_for_crystal->copied_headers = NULL; -- cgit v1.2.3