diff options
author | Thomas White <taw@physics.org> | 2010-03-26 16:23:21 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-03-26 16:23:21 +0100 |
commit | 6a2ebece241fd5d1a82787b446d8eb7b273ae97e (patch) | |
tree | 4e60ef94a90351bbf2439b29fbc3284b8176e9a4 /src/index.c | |
parent | 6a9811f69425e47b061f4987970681dbbf27a2bd (diff) |
Don't try to render PDBs, part II: remove "molecule" from "struct image".
Diffstat (limited to 'src/index.c')
-rw-r--r-- | src/index.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/index.c b/src/index.c index daa16b27..f2b8ffb9 100644 --- a/src/index.c +++ b/src/index.c @@ -57,8 +57,8 @@ static void write_drx(struct image *image) } -void index_pattern(struct image *image, IndexingMethod indm, int no_match, - int verbose) +void index_pattern(struct image *image, UnitCell *cell, IndexingMethod indm, + int no_match, int verbose) { int i; int nc = 0; @@ -115,8 +115,7 @@ void index_pattern(struct image *image, IndexingMethod indm, int no_match, STATUS("--------------------\n"); } - new_cell = match_cell(image->candidate_cells[i], - image->molecule->cell, verbose); + new_cell = match_cell(image->candidate_cells[i], cell, verbose); image->indexed_cell = new_cell; if ( new_cell != NULL ) { STATUS("Matched on attempt %i.\n", i); |