aboutsummaryrefslogtreecommitdiff
path: root/src/pattern_sim.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-09-20 14:06:30 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:37 +0100
commitfba222a2c0d377f1b87644ffb3eeb9c40252bc89 (patch)
tree20ec37f33bdb5214cdc7a7204da23aa0342b7edf /src/pattern_sim.c
parent89a309c13b57011930ed452d1c3a1cd350f67bcb (diff)
pattern_sim: Write powder at end of simulation series as well
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r--src/pattern_sim.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index 62390017..758e9c85 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -599,6 +599,12 @@ skip:
} while ( !done );
+ if ( powder_fn != NULL ) {
+ hdf5_write(powder_fn, powder,
+ image.width, image.height,
+ H5T_NATIVE_DOUBLE);
+ }
+
if ( gctx != NULL ) {
cleanup_gpu(gctx);
}