diff options
author | Thomas White <taw@bitwiz.org.uk> | 2010-03-27 13:12:51 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2010-03-27 13:12:51 +0100 |
commit | bdd2a7b4a8a5456a023d54be6fd5d6a011314c7e (patch) | |
tree | 3d13a13a57e724ed94505b3b919d40e18c095cc6 /src/reflections.c | |
parent | a6e064b18ed513d341d8793acbc485d7bc291827 (diff) |
Allow molecule_factor() to tell when it doesn't know the intensity
Diffstat (limited to 'src/reflections.c')
-rw-r--r-- | src/reflections.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/reflections.c b/src/reflections.c index deba0f8d..c943d014 100644 --- a/src/reflections.c +++ b/src/reflections.c @@ -84,7 +84,7 @@ void write_reflections(const char *filename, unsigned int *counts, } -double *read_reflections(const char *filename) +double *read_reflections(const char *filename, unsigned int *counts) { double *ref; FILE *fh; @@ -110,6 +110,7 @@ double *read_reflections(const char *filename) if ( r != 4 ) continue; set_intensity(ref, h, k, l, intensity); + if ( counts != NULL ) set_count(counts, h, k, l, 1); } while ( rval != NULL ); |