- Fixes to make SL6 work
- New NeXus libraries - Added new raw binary transfer mode for mass data - Added a check script option to configurable virtual motor SKIPPED: psi/dumprot.c psi/make_gen psi/psi.c psi/rebin.c psi/sanslirebin.c
This commit is contained in:
33
simidx.c
33
simidx.c
@ -617,39 +617,6 @@ static int findSolutionsForTriplet(int triplet[3], int testRight)
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------
|
||||
* If the system is right handed the determinat of the
|
||||
* matrix having the indices as columns must be positive.
|
||||
* As I have only two vectors, I simulate the third by
|
||||
* using the nromal on the other two.
|
||||
-------------------------------------------------------------*/
|
||||
static int testDuoRightHandedness(int r1, int r1idx, int r2, int r2idx)
|
||||
{
|
||||
MATRIX T;
|
||||
double vol;
|
||||
int r3, r3idx;
|
||||
|
||||
T = mat_creat(3, 3, ZERO_MATRIX);
|
||||
if (T == NULL) {
|
||||
return 0;
|
||||
}
|
||||
T[0][0] = reflections[r1].indices[r1idx].h;
|
||||
T[1][0] = reflections[r1].indices[r1idx].k;
|
||||
T[2][0] = reflections[r1].indices[r1idx].l;
|
||||
T[0][1] = reflections[r2].indices[r2idx].h;
|
||||
T[1][1] = reflections[r2].indices[r2idx].k;
|
||||
T[2][1] = reflections[r2].indices[r2idx].l;
|
||||
T[0][2] = reflections[r3].indices[r3idx].h;
|
||||
T[1][2] = reflections[r3].indices[r3idx].k;
|
||||
T[2][2] = reflections[r3].indices[r3idx].l;
|
||||
vol = mat_det(T);
|
||||
mat_free(T);
|
||||
if (vol > .0) {
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------*/
|
||||
static int findSolutionsForDuett(int triplet[3])
|
||||
|
Reference in New Issue
Block a user