- Added a multiple histogram memory control module. This required a
tiny change in the countable interface which in turn required updating of header file includes in a lot of files. - Some small fixes to TRICS writing as well.
This commit is contained in:
41
napi.c
41
napi.c
@@ -35,7 +35,7 @@
|
||||
|
||||
----------------------------------------------------------------------------*/
|
||||
|
||||
static const char* rscid = "$Id: napi.c,v 1.3 2000/09/11 09:17:44 cvs Exp $"; /* Revision interted by CVS */
|
||||
static const char* rscid = "$Id: napi.c,v 1.4 2001/06/08 15:18:37 cvs Exp $"; /* Revision interted by CVS */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
@@ -507,7 +507,7 @@ static const char* rscid = "$Id: napi.c,v 1.3 2000/09/11 09:17:44 cvs Exp $"; /*
|
||||
}
|
||||
|
||||
/* start Vgroup API */
|
||||
pNew->iVID = Hopen (filename, am, 100);
|
||||
pNew->iVID = Hopen (filename, am, 5000);
|
||||
if (pNew->iVID <= 0) {
|
||||
sprintf (pBuffer, "ERROR: cannot open file: %s", filename);
|
||||
NXIReportError (NXpData, pBuffer);
|
||||
@@ -1050,6 +1050,43 @@ static const char* rscid = "$Id: napi.c,v 1.3 2000/09/11 09:17:44 cvs Exp $"; /*
|
||||
return NX_OK;
|
||||
}
|
||||
|
||||
NXstatus
|
||||
NXsetdimname(NXhandle fid, int iDim, CONSTCHAR *name)
|
||||
{
|
||||
pNexusFile pFile;
|
||||
int32 dim_id, iRet;
|
||||
|
||||
pFile = NXIassert (fid);
|
||||
|
||||
/* check if there is an SDS open */
|
||||
if (pFile->iCurrentSDS == 0) {
|
||||
NXIReportError (NXpData, "ERROR: no SDS open");
|
||||
return NX_ERROR;
|
||||
}
|
||||
|
||||
/*
|
||||
get dimension ID
|
||||
*/
|
||||
dim_id = SDgetdimid(pFile->iCurrentSDS,iDim);
|
||||
if(dim_id < 0){
|
||||
NXIReportError(NXpData,
|
||||
"ERROR: trying to set dimension name for non existent dimension");
|
||||
return NX_ERROR;
|
||||
}
|
||||
|
||||
/*
|
||||
set name
|
||||
*/
|
||||
iRet = SDsetdimname(dim_id,name);
|
||||
if(iRet < 0){
|
||||
NXIReportError(NXpData,
|
||||
"ERROR: failed to set dimension name");
|
||||
return NX_ERROR;
|
||||
}
|
||||
|
||||
return NX_OK;
|
||||
}
|
||||
|
||||
|
||||
NXstatus
|
||||
NXputdata (NXhandle fid, void *data)
|
||||
|
||||
Reference in New Issue
Block a user