aboutsummaryrefslogtreecommitdiff
path: root/src/partial_sim.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-08-19 12:30:10 +0200
committerThomas White <taw@physics.org>2020-08-19 12:30:10 +0200
commit1d8f71504ece9da2164d680d52823a865b60faab (patch)
tree80104a634b1be9e087937077521100217d8385a2 /src/partial_sim.c
parent5f4c120e3c74284e72525d9bb5a9a8da13871968 (diff)
Remove STREAM_UNITCELL and STREAM_CRYSTALS
These flags weren't orthogonal at all, which was turning some routines into spaghetti-code. It's still possible to avoid read/write of peak lists, reflection data or image data. But that's it.
Diffstat (limited to 'src/partial_sim.c')
-rw-r--r--src/partial_sim.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/partial_sim.c b/src/partial_sim.c
index a0f60e1e..85222dd2 100644
--- a/src/partial_sim.c
+++ b/src/partial_sim.c
@@ -346,7 +346,7 @@ static void *create_job(void *vqargs)
struct image *image;
image = stream_read_chunk(qargs->template_stream,
- STREAM_UNITCELL | STREAM_REFLECTIONS);
+ STREAM_REFLECTIONS);
if ( image == NULL ) {
ERROR("Failed to read template chunk!\n");
return NULL;
@@ -473,9 +473,7 @@ static void finalise_job(void *vqargs, void *vwargs)
int ret;
ret = stream_write_chunk(qargs->stream, wargs->image,
- STREAM_UNITCELL
- | STREAM_REFLECTIONS
- | STREAM_CRYSTALS);
+ STREAM_REFLECTIONS);
if ( ret != 0 ) {
ERROR("WARNING: error writing stream file.\n");
}