- Added brute force indexing support to ubcalc

- Added calculation of UB from 3 reflections to ubcalc
- Added calculation of lattice constants from UB to ubcalc
- Some fixes in stdscan in order to make the scripted scan work
This commit is contained in:
koennecke
2005-04-01 13:48:25 +00:00
parent 152bc961ec
commit 5c30a7ea7b
10 changed files with 637 additions and 45 deletions

View File

@ -50,12 +50,6 @@
#include "histsim.h"
#define TESTVAL 128
/*
define TESTVAL to set the simulated histogram to a fixed value for
testing
*/
static int iSet = 0;
static HistInt iSetVal = 0;
static HistMode eHistMode;
@ -86,6 +80,16 @@
free(self->pPriv);
self->pPriv = NewSIMCounter("HistoSim",fFail);
}
/*
configured test value
*/
status = StringDictGet(pOption,"testval",pData,131);
if(status)
{
iSet = 1;
iSetVal = atoi(pData);
}
return 1;
}
@ -172,12 +176,7 @@
SCWrite(pCon,"ERROR: histogram out of range",eError);
return 0;
}
#ifdef TESTVAL
for(ii = iStart; ii < iEnd; ii++)
{
lData[ii-iStart] = TESTVAL;
}
#else
if(iSet == 1)
{
for(ii = iStart; ii < iEnd; ii++)
@ -192,7 +191,6 @@
lData[ii-iStart] = random();
}
}
#endif
return 1;
}
/*------------------------------------------------------------------------*/