aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-06-24 23:15:04 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:30 +0100
commit27c0e190cc10fc2856e078dcb6710c29bdd15176 (patch)
treeb8c6e8a601bc1ef4da475dd0b78e9d5c538df114
parent9110bcfa0edec740eb006af389031caec8cfd37e (diff)
Test everything
-rw-r--r--src/partial_sim.c12
-rw-r--r--src/post-refinement.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/src/partial_sim.c b/src/partial_sim.c
index 89179b67..f8bc354b 100644
--- a/src/partial_sim.c
+++ b/src/partial_sim.c
@@ -47,12 +47,12 @@ static void mess_up_cell(UnitCell *cell)
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);
+ 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);
cell_set_reciprocal(cell, ax, ay, az, bx, by, bz, cx, cy, cz);
STATUS("Changed:\n");
diff --git a/src/post-refinement.h b/src/post-refinement.h
index 16db022c..039a69c8 100644
--- a/src/post-refinement.h
+++ b/src/post-refinement.h
@@ -29,13 +29,13 @@ enum {
REF_ASX,
REF_ASY,
REF_ASZ,
- NUM_PARAMS,
REF_BSX,
REF_BSY,
REF_BSZ,
REF_CSX,
REF_CSY,
REF_CSZ,
+ NUM_PARAMS,
REF_DIV,
REF_R,
};