diff options
author | Thomas White <taw@physics.org> | 2020-10-27 16:06:32 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-10-27 16:06:32 +0100 |
commit | 02dd5362fa9f0eb8e2f6df45511347ee3533fdd2 (patch) | |
tree | 1ece25a86631caf673d24660aa4a6facbd60452d | |
parent | 876a2e8d748c65f8188a92391bb358c26c146078 (diff) |
partialator: Don't copy detgeom
Detector geometry is not used for scaling/post-refinement
-rw-r--r-- | src/partialator.c | 29 |
1 files changed, 1 insertions, 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; i<np; i++ ) { - new->panels[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; |