diff options
author | Thomas White <taw@physics.org> | 2009-11-25 15:19:11 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2009-11-25 15:19:11 +0100 |
commit | 36addbc39e3d1a9da88959b6c07af9438402b016 (patch) | |
tree | 30a7753bc80ea7d07bccd9cdcce88e9a3d9c1b97 /src/sfac.c | |
parent | 664db6be6a05b11e8a5df9f77c41ec54d3dd202a (diff) |
Make Debye-Waller parameter optional
Diffstat (limited to 'src/sfac.c')
-rw-r--r-- | src/sfac.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); + } } |