aboutsummaryrefslogtreecommitdiff
path: root/src/ewald.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-01-14 10:30:30 +0100
committerThomas White <taw@physics.org>2010-01-14 10:30:30 +0100
commita8efbaa98b4ece01c7fc5de0d1ba1f20fa985a9d (patch)
tree4674265e0b9633f9e7121e0599097518a505623d /src/ewald.c
parent1f5167c7b129f029758a92cecd6b037f14dada36 (diff)
s/threevec/rvec/
Diffstat (limited to 'src/ewald.c')
-rw-r--r--src/ewald.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ewald.c b/src/ewald.c
index 89c2e484..82b70df2 100644
--- a/src/ewald.c
+++ b/src/ewald.c
@@ -20,9 +20,9 @@
#include "ewald.h"
-static struct threevec quat_rot(struct threevec q, struct quaternion z)
+static struct rvec quat_rot(struct rvec q, struct quaternion z)
{
- struct threevec res;
+ struct rvec res;
double t01, t02, t03, t11, t12, t13, t22, t23, t33;
t01 = z.w*z.x;
@@ -59,7 +59,7 @@ void get_ewald(struct image *image)
k = 1/image->lambda;
image->qvecs = malloc(image->width * image->height
- * sizeof(struct threevec));
+ * sizeof(struct rvec));
image->twotheta = malloc(image->width * image->height
* sizeof(double));
@@ -70,7 +70,7 @@ void get_ewald(struct image *image)
double rx, ry, r;
double twothetax, twothetay, twotheta;
double qx, qy, qz;
- struct threevec q;
+ struct rvec q;
/* Calculate q vectors for Ewald sphere */
rx = ((double)x - image->x_centre) / image->resolution;