Commit 715e5ef1 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

gridPrintKernel(): added output of uuid

parent 72da380f
......@@ -3428,7 +3428,7 @@ void gridPrintKernel(grid_t * gridptr, int opt, FILE *fp)
int nbyte0, nbyte;
int i;
int nvertex, iv;
char uuid[17];
char uuidOfHGrid[17];
int gridID = gridptr->self;
const double *area = gridInqAreaPtr(gridID);
const double *xvals = gridInqXvalsPtr(gridID);
......@@ -3697,14 +3697,16 @@ void gridPrintKernel(grid_t * gridptr, int opt, FILE *fp)
}
case GRID_REFERENCE:
{
const unsigned char *d;
// const unsigned char *d;
fprintf(fp, "number = %d\n", gridInqNumber(gridID));
fprintf(fp, "position = %d\n", gridInqPosition(gridID));
gridInqUUID(gridID, uuid);
d = (unsigned char *) &uuid;
/*
gridInqUUID(gridID, uuidOfHGrid);
d = (unsigned char *) &uuidOfHGrid;
fprintf(fp, "uuid = %02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x\n",
d[0], d[1], d[2], d[3], d[4], d[5], d[6], d[7],
d[8], d[9], d[10], d[11], d[12], d[13], d[14], d[15]);
*/
if ( gridInqReference(gridID, NULL) )
{
char reference_link[8192];
......@@ -3720,6 +3722,15 @@ void gridPrintKernel(grid_t * gridptr, int opt, FILE *fp)
}
}
gridInqUUID(gridID, uuidOfHGrid);
if ( uuidOfHGrid[0] != 0 )
{
char uuidOfHGridStr[37];
uuid2str(uuidOfHGrid, uuidOfHGridStr);
if ( uuidOfHGridStr[0] != 0 && strlen(uuidOfHGridStr) == 36 )
fprintf(fp, "uuid = %s\n", uuidOfHGridStr);
}
if ( gridptr->mask )
{
nbyte0 = fprintf(fp, "mask = ");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment