- Adding first working version of the McStas SICS connection to cvs
SKIPPED: psi/polterwrite.c
This commit is contained in:
10
tasscanub.c
10
tasscanub.c
@ -333,13 +333,13 @@ static int TASUBHeader(pScanData self)
|
||||
pTAS->ub->cell.beta,
|
||||
pTAS->ub->cell.gamma);
|
||||
|
||||
findReflection(pTAS->ub->reflectionList,pTAS->ub->r1 - 1,&r);
|
||||
r = pTAS->ub->r1;
|
||||
fprintf(self->fd,"PARAM: AX=%8.4f, AY=%8.4f, AZ=%8.4f\n",
|
||||
r.qe.qh,
|
||||
r.qe.qk,
|
||||
r.qe.ql);
|
||||
|
||||
findReflection(pTAS->ub->reflectionList,pTAS->ub->r2 - 1,&r);
|
||||
r = pTAS->ub->r2;
|
||||
fprintf(self->fd,"PARAM: BX=%8.4f, BY=%8.4f, BZ=%8.4f\n",
|
||||
r.qe.qh,
|
||||
r.qe.qk,
|
||||
@ -857,7 +857,7 @@ static void ParseOutput(pTASdata pTAS, SConnection *pCon)
|
||||
/*
|
||||
get a copy of output
|
||||
*/
|
||||
pText = (char *)malloc(strlen(GetVarText("output"))*sizeof(char));
|
||||
pText = (char *)malloc((strlen(GetVarText("output"))+1)*sizeof(char));
|
||||
if(!pText)
|
||||
{
|
||||
SCWrite(pCon,"WARNING: out of memory while parsing output variable",
|
||||
@ -1028,7 +1028,7 @@ static void TASUBDump(pTASdata self, SicsInterp *pSics, SConnection *pCon,
|
||||
write orienting reflections
|
||||
*/
|
||||
snprintf(pBueffel,255,"%s_vec1",argv[3]);
|
||||
findReflection(self->ub->reflectionList, self->ub->r1,&r);
|
||||
r = self->ub->r1;
|
||||
v[0] = r.qe.qh;
|
||||
v[1] = r.qe.qk;
|
||||
v[2] = r.qe.ql;
|
||||
@ -1038,7 +1038,7 @@ static void TASUBDump(pTASdata self, SicsInterp *pSics, SConnection *pCon,
|
||||
SCWrite(pCon,pBueffel,eWarning);
|
||||
}
|
||||
snprintf(pBueffel,255,"%s_vec2",argv[3]);
|
||||
findReflection(self->ub->reflectionList, self->ub->r2,&r);
|
||||
r = self->ub->r2;
|
||||
v[0] = r.qe.qh;
|
||||
v[1] = r.qe.qk;
|
||||
v[2] = r.qe.ql;
|
||||
|
Reference in New Issue
Block a user