aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2016-11-24 14:12:35 +0100
committerThomas White <taw@physics.org>2016-11-24 14:23:51 +0100
commite8ea422d07198aad67f9bdc8b31b1cd421b278fd (patch)
treec9e2d59b40acea8dffbb52ae088149893ebd5735 /src
parentc664d718c86fd7d287d310514bc9bad05a0810fa (diff)
partialator: Fix counting of images
Diffstat (limited to 'src')
-rw-r--r--src/partialator.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/partialator.c b/src/partialator.c
index 30d265af..5b6ea2fb 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -756,7 +756,6 @@ int main(int argc, char *argv[])
int n_iter = 10;
RefList *full;
int n_images = 0;
- int n_images_seen = 0;
int n_crystals = 0;
int n_crystals_seen = 0;
char cmdline[1024];
@@ -1001,7 +1000,6 @@ int main(int argc, char *argv[])
/* Fill in what we know about the images so far */
n_images = 0;
- n_images_seen = 0;
n_crystals = 0;
n_crystals_seen = 0;
images = NULL;
@@ -1049,8 +1047,6 @@ int main(int argc, char *argv[])
return 1;
}
- n_images_seen++;
-
for ( i=0; i<cur->n_crystals; i++ ) {
Crystal *cr;
@@ -1103,9 +1099,7 @@ int main(int argc, char *argv[])
}
- if ( n_crystals > 0 ) {
- n_images++;
- }
+ n_images++;
if ( n_images % 100 == 0 ) {
display_progress(n_images, n_crystals);