- Many fixes to the four circle codes during taking the new code into

operation.
- Fixed some missing output
- Second generation histogram memory and velocity selector objects
- Fixed a problem in diffscan
This commit is contained in:
koennecke
2009-05-15 13:21:20 +00:00
parent 8c6d95bee6
commit 3f3f0810e5
34 changed files with 1014 additions and 117 deletions

View File

@ -479,6 +479,11 @@ static int findAngleMatch(MATRIX B, int idxr1, int r1,
/*-------------------------------------------------------------
* If the system is right handed the determinat of the
* matrix having the indices as columns must be positive
* I now (05/2009) thgink that this test is wrong. The testing
* has to be done separatly, by checking if the determinant of the
* calculated UB is > 0. As I do not want this in this file, which
* ought to be diffractometer independent, this test may need to
* left to a the caller.
-------------------------------------------------------------*/
static int testRightHandedness(int r1, int r1idx,
int r2, int r2idx, int r3, int r3idx)
@ -747,12 +752,14 @@ int SimIdxRun()
SimIdxPrint(10, "Choosen triplet: %d, %d, %d\n", triplet[0],
triplet[1], triplet[2]);
status = findSolutionsForTriplet(triplet, 1);
status = findSolutionsForTriplet(triplet, 0);
/*
if (nSolutions == 0) {
SimIdxPrint(1,
"WARNING: found no right handed solution set, trying to find lefthanded");
status = findSolutionsForTriplet(triplet, 0);
}
*/
if (nSolutions == 0) {
SimIdxPrint(10, "Failed to find solution for triplet, trying duett");
status = secondForDuett(triplet);