Commit f7ee4f43 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

printGridNp: replaced np= by F/N.

parent 33624f8f
......@@ -257,15 +257,18 @@ print_xyvals2D(int gridID, int dig)
static void
printGridNp(int gridtype, int gridID, size_t gridsize, size_t xsize, size_t ysize)
{
size_t xysize = xsize * ysize;
fprintf(stdout, "points=%zu", gridsize);
if (gridtype == GRID_GAUSSIAN_REDUCED)
fprintf(stdout, " nlat=%zu", ysize);
else if (xysize)
else if (xsize && ysize)
fprintf(stdout, " (%zux%zu)", xsize, ysize);
if (gridtype == GRID_GAUSSIAN || gridtype == GRID_GAUSSIAN_REDUCED) fprintf(stdout, " np=%d", gridInqNP(gridID));
const int numLPE = gridInqNP(gridID);
if (numLPE > 0)
{
if (gridtype == GRID_GAUSSIAN) fprintf(stdout, " F%d", numLPE);
if (gridtype == GRID_GAUSSIAN_REDUCED) fprintf(stdout, " N%d", numLPE);
}
fprintf(stdout, "\n");
}
......
Markdown is supported
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