aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-06-28 17:16:39 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:30 +0100
commitd5f2f7ee1f4b1a13e5767ef6c38fc9706603e5d7 (patch)
tree4797c2779fb15c59e023e72ee3a4e9f0eb24a5fc
parent39b482b6203bee5a5edf019a89db196d8cfd4bff (diff)
Reduce error in cell parameters
-rw-r--r--src/partial_sim.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/partial_sim.c b/src/partial_sim.c
index dd449caa..7c9ffc01 100644
--- a/src/partial_sim.c
+++ b/src/partial_sim.c
@@ -44,15 +44,15 @@ static void mess_up_cell(UnitCell *cell)
//cell_print(cell);
cell_get_reciprocal(cell, &ax, &ay, &az, &bx, &by, &bz, &cx, &cy, &cz);
- ax = gaussian_noise(ax, cnoise*fabs(ax)/100.0);
- ay = gaussian_noise(ay, cnoise*fabs(ay)/100.0);
- az = gaussian_noise(az, cnoise*fabs(az)/100.0);
- bx = gaussian_noise(bx, cnoise*fabs(bx)/100.0);
- by = gaussian_noise(by, cnoise*fabs(by)/100.0);
- bz = gaussian_noise(bz, cnoise*fabs(bz)/100.0);
- cx = gaussian_noise(cx, cnoise*fabs(cx)/100.0);
- cy = gaussian_noise(cy, cnoise*fabs(cy)/100.0);
- cz = gaussian_noise(cz, cnoise*fabs(cz)/100.0);
+ ax = gaussian_noise(ax, cnoise*fabs(ax)/200.0);
+ ay = gaussian_noise(ay, cnoise*fabs(ay)/200.0);
+ az = gaussian_noise(az, cnoise*fabs(az)/200.0);
+ bx = gaussian_noise(bx, cnoise*fabs(bx)/200.0);
+ by = gaussian_noise(by, cnoise*fabs(by)/200.0);
+ bz = gaussian_noise(bz, cnoise*fabs(bz)/200.0);
+ cx = gaussian_noise(cx, cnoise*fabs(cx)/200.0);
+ cy = gaussian_noise(cy, cnoise*fabs(cy)/200.0);
+ cz = gaussian_noise(cz, cnoise*fabs(cz)/200.0);
cell_set_reciprocal(cell, ax, ay, az, bx, by, bz, cx, cy, cz);
//STATUS("Changed:\n");