aboutsummaryrefslogtreecommitdiff
path: root/src/pattern_sim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r--src/pattern_sim.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index cea3d004..c60b3280 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -754,6 +754,16 @@ int main(int argc, char *argv[])
double a, b, c, d;
UnitCell *cell;
int err = 0;
+ int pi;
+
+ for ( pi=0; pi<image.det->n_panels; pi++ ) {
+ long j;
+ long np = image.det->panels[pi].w
+ * image.det->panels[pi].h;
+ for ( j=0; j<np; j++ ) {
+ image.dp[pi][j] = 0.0;
+ }
+ }
if ( random_size ) {