diff options
author | Thomas White <taw@physics.org> | 2016-10-18 17:43:52 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2016-10-18 17:43:52 +0200 |
commit | 6b9d9cdc1756d152281cf864058c800719b5e895 (patch) | |
tree | 88c3b1520ed48e496c0ed683ddd9984527ffdb12 | |
parent | dd1d51b027b04ce4112487b78fd336417b511806 (diff) |
Fixup last commit
-rw-r--r-- | libcrystfel/src/taketwo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcrystfel/src/taketwo.c b/libcrystfel/src/taketwo.c index bb5fb975..f8194421 100644 --- a/libcrystfel/src/taketwo.c +++ b/libcrystfel/src/taketwo.c @@ -274,8 +274,8 @@ static int generate_rot_mat(struct rvec obs1, struct rvec obs2, gsl_matrix *rotateSpotDiffMatrix; gsl_matrix *secondTwizzleMatrix; gsl_matrix *fullMat; - gsl_vector *zero = gsl_vector_calloc(3); gsl_vector *obs2v = rvec_to_gsl(obs2); + gsl_vector *obs2vr = gsl_vector_calloc(3); /* Rotate reciprocal space so that the first observed vector lines up * with the simulated vector. */ @@ -283,9 +283,9 @@ static int generate_rot_mat(struct rvec obs1, struct rvec obs2, normalise_rvec(&cell1); - /* Multiply obs2 by rotateSpotDiffMatrix */ + /* Multiply obs2 by rotateSpotDiffMatrix --> obs2vr */ gsl_blas_dgemv(CblasNoTrans, 1.0, rotateSpotDiffMatrix, obs2v, - 0.0, zero); + 0.0, obs2vr); return 1; } |