aboutsummaryrefslogtreecommitdiff
path: root/src/diffraction.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/diffraction.c')
-rw-r--r--src/diffraction.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/diffraction.c b/src/diffraction.c
index a0248450..b7bdb75a 100644
--- a/src/diffraction.c
+++ b/src/diffraction.c
@@ -142,7 +142,9 @@ void get_diffraction(struct image *image, int na, int nb, int nc)
double a, b, c, d;
/* Generate the array of reciprocal space vectors in image->qvecs */
- get_ewald(image);
+ if ( image->qvecs == NULL ) {
+ get_ewald(image);
+ }
if ( image->molecule == NULL ) {
image->molecule = load_molecule();