- Debugging amor problem

This commit is contained in:
cvs
2003-01-09 07:58:19 +00:00
parent c944355198
commit bbc0b64c43
4 changed files with 15 additions and 5 deletions

View File

@ -588,6 +588,7 @@
int iMax = -999999; int iMax = -999999;
const float *timebin; const float *timebin;
HistInt *iData = NULL; HistInt *iData = NULL;
int iStart;
/* get size of our problem */ /* get size of our problem */
GetHistDim(self->pHM,iDim,&i3); GetHistDim(self->pHM,iDim,&i3);
@ -610,11 +611,12 @@
if(isSINQHMDriv(self->pHM->pDriv)) if(isSINQHMDriv(self->pHM->pDriv))
{ {
GetHistogramDirect(self->pHM,pCon,0,iDim[0]*iDim[1]*iDim[2], iStart = iDim[0]*iDim[1]*iDim[2];
2*iDim[2],&iData[1],2*iDim[2]*sizeof(HistInt)); GetHistogramDirect(self->pHM,pCon,0,iStart,
iStart + 2*iDim[2],&iData[1],2*iDim[2]*sizeof(HistInt));
for(i = 1; i < length; i++) for(i = 1; i < length; i++)
{ {
iData[i] = htonl(iData[i]); iData[i] = htonl(iData[i]);
} }
} }
else else

View File

@ -1,3 +1,3 @@
245 257
NEVER, EVER modify or delete this file NEVER, EVER modify or delete this file
You'll risk eternal damnation and a reincarnation as a cockroach!|n You'll risk eternal damnation and a reincarnation as a cockroach!|n

8
o2t.c
View File

@ -211,7 +211,13 @@
/* get and check drivabels */ /* get and check drivabels */
pCom = FindCommand(pSics,omega); pCom = FindCommand(pSics,omega);
pDum = pCom->pData; if(pCom != NULL)
{
pDum = pCom->pData;
} else
{
pDum = NULL;
}
if(GetDrivableInterface(pDum) != NULL){ if(GetDrivableInterface(pDum) != NULL){
self->pOmega = pDum; self->pOmega = pDum;
} }

View File

@ -125,3 +125,5 @@ Publish ScanCounts Spy
Publish TextStatus Spy Publish TextStatus Spy
Publish otUnknown User Publish otUnknown User
MakeRuenBuffer MakeRuenBuffer
MakeXYTable table