aboutsummaryrefslogtreecommitdiff
path: root/src/partialator.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2024-01-19 12:59:47 +0100
committerThomas White <taw@physics.org>2024-02-06 16:59:34 +0100
commitfd363c300c1767681ac6b03f05132d9e6d8a6884 (patch)
treebe6ce156bd9ca66a0682393675dd77c1a2ac18c3 /src/partialator.c
parenta40db3a0a67914934f214d5ea9473ad3465235b5 (diff)
Fix incorrect uses of cell_free
This also gets rid of crystal_copy_deep. From now on, all crystal_copy calls also copy the UnitCell.
Diffstat (limited to 'src/partialator.c')
-rw-r--r--src/partialator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/partialator.c b/src/partialator.c
index 659a12c5..7d3f19f6 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -1611,7 +1611,7 @@ int main(int argc, char *argv[])
return 1;
}
crystals = crystals_new;
- cr = crystal_copy_deep(image->crystals[i].cr);
+ cr = crystal_copy(image->crystals[i].cr);
crystals[n_crystals].cr = cr;
images_new = realloc(images, (n_crystals+1)*sizeof(struct image *));