diff options
author | Thomas White <taw@physics.org> | 2010-02-24 11:53:20 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-02-24 11:53:20 +0100 |
commit | 4cae1180965b83cfabb1e603bd64245f73b43067 (patch) | |
tree | 57f187ea66be0ca343498bb678dfb332cfcf96e9 /src/reflections.c | |
parent | 0fca55c11c285cd5f9d246cdee71665ff116b6df (diff) |
Handle missing molecule.pdb a little better (can do better still, though)
Diffstat (limited to 'src/reflections.c')
-rw-r--r-- | src/reflections.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/reflections.c b/src/reflections.c index c9d83710..93cecca9 100644 --- a/src/reflections.c +++ b/src/reflections.c @@ -64,7 +64,11 @@ void write_reflections(const char *filename, unsigned int *counts, F = lookup_intensity(ref, h, k, l) / N; if ( zone_axis && (l != 0) ) continue; - s = 2.0*resolution(cell, h, k, l); + if ( cell != NULL ) { + s = 2.0*resolution(cell, h, k, l); + } else { + s = 0.0; + } /* h, k, l, I, sigma(I), s */ fprintf(fh, "%3i %3i %3i %f %f %f\n", h, k, l, F, 0.0, s/1.0e9); |