diff options
author | Thomas White <taw@physics.org> | 2010-03-03 15:39:15 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-03-03 15:39:15 +0100 |
commit | bc4edcdaeae690a1d0d848e53b4f61286a1298ef (patch) | |
tree | 5629935847c910b7777468e26fd6c47e764aeb65 /src/index.c | |
parent | 851c205e1a3d2bb059b3e045a73682eed0f605a3 (diff) |
Put many debug messages behind a --verbose option
Diffstat (limited to 'src/index.c')
-rw-r--r-- | src/index.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/index.c b/src/index.c index 865715c2..470d9e4c 100644 --- a/src/index.c +++ b/src/index.c @@ -60,7 +60,8 @@ static void write_drx(struct image *image) } -void index_pattern(struct image *image, IndexingMethod indm, int no_match) +void index_pattern(struct image *image, IndexingMethod indm, int no_match, + int verbose) { int i; UnitCell *new_cell = NULL; @@ -92,7 +93,7 @@ void index_pattern(struct image *image, IndexingMethod indm, int no_match) if ( image->indexed_cell == NULL ) { STATUS("No cell found.\n"); return; - } else { + } else if ( verbose ) { STATUS("--------------------\n"); STATUS("The indexed cell (before matching):\n"); cell_print(image->indexed_cell); @@ -101,7 +102,7 @@ void index_pattern(struct image *image, IndexingMethod indm, int no_match) if ( !no_match ) { new_cell = match_cell(image->indexed_cell, - image->molecule->cell); + image->molecule->cell, verbose); free(image->indexed_cell); image->indexed_cell = new_cell; } |