aboutsummaryrefslogtreecommitdiff
path: root/src/sfac.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2009-11-25 15:19:11 +0100
committerThomas White <taw@physics.org>2009-11-25 15:19:11 +0100
commit36addbc39e3d1a9da88959b6c07af9438402b016 (patch)
tree30a7753bc80ea7d07bccd9cdcce88e9a3d9c1b97 /src/sfac.c
parent664db6be6a05b11e8a5df9f77c41ec54d3dd202a (diff)
Make Debye-Waller parameter optional
Diffstat (limited to 'src/sfac.c')
-rw-r--r--src/sfac.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sfac.c b/src/sfac.c
index c2ccc1bc..e70bc750 100644
--- a/src/sfac.c
+++ b/src/sfac.c
@@ -394,6 +394,7 @@ double complex *get_reflections(struct molecule *mol, double en)
signed int h, k, l;
//double tscat = 0.0;
//double F00;
+ const int do_thermal = 1;
cell_get_reciprocal(mol->cell, &asx, &asy, &asz,
&bsx, &bsy, &bsz,
@@ -437,7 +438,11 @@ double complex *get_reflections(struct molecule *mol, double en)
}
sfac = get_sfac(spec->species, s, en);
- F += sfac * contrib * exp(-2.0 * spec->B[j] * s);
+ F += sfac * contrib;
+
+ if ( do_thermal ) {
+ F *= exp(-2.0 * spec->B[j] * s);
+ }
}