aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-04-19 16:49:20 +0200
committerThomas White <taw@physics.org>2012-04-19 16:54:10 +0200
commit7f221c3bfbc5ad41016a451c778f7b8710be03ef (patch)
treed0b2dc5867a5a80762688a0ef3637bd7d6606f3d /src
parent83e8ae45888b8edbe6112d9bcceea3352c422255 (diff)
Formatting
Diffstat (limited to 'src')
-rw-r--r--src/post-refinement.c32
1 files changed, 20 insertions, 12 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index 2ff408eb..cf7b2576 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -147,7 +147,7 @@ double gradient(struct image *image, int k, Reflection *refl, double r)
* of excitation error wrt whatever. */
switch ( k ) {
- case REF_DIV :
+ case REF_DIV :
gr = 0.0;
if ( clamp_low == 0 ) {
nom = sqrt(2.0) * ds * sin(image->div/2.0);
@@ -162,7 +162,7 @@ double gradient(struct image *image, int k, Reflection *refl, double r)
if ( isnan(gr) ) gr = 0.0; /* FIXME: This isn't true (?) */
return gr / 4.0; /* FIXME: Shameless fudge factor */
- case REF_R :
+ case REF_R :
g = 0.0;
if ( clamp_low == 0 ) {
g += partiality_rgradient(r1, r);
@@ -172,24 +172,32 @@ double gradient(struct image *image, int k, Reflection *refl, double r)
}
return g;
- /* Cell parameters and orientation */
- case REF_ASX :
+ /* Cell parameters and orientation */
+ case REF_ASX :
return hs * sin(tt) * cos(azix) * g;
- case REF_BSX :
+
+ case REF_BSX :
return ks * sin(tt) * cos(azix) * g;
- case REF_CSX :
+
+ case REF_CSX :
return ls * sin(tt) * cos(azix) * g;
- case REF_ASY :
+
+ case REF_ASY :
return hs * sin(tt) * cos(aziy) * g;
- case REF_BSY :
+
+ case REF_BSY :
return ks * sin(tt) * cos(aziy) * g;
- case REF_CSY :
+
+ case REF_CSY :
return ls * sin(tt) * cos(aziy) * g;
- case REF_ASZ :
+
+ case REF_ASZ :
return hs * cos(tt) * g;
- case REF_BSZ :
+
+ case REF_BSZ :
return ks * cos(tt) * g;
- case REF_CSZ :
+
+ case REF_CSZ :
return ls * cos(tt) * g;
}