diff --git a/src/stream_cgribex.c b/src/stream_cgribex.c index e38117ea9a01bce143e1ea7b05f774cfd56cb835..fb58e158e7f6cbf7be51a696043002c40f30e3c5 100644 --- a/src/stream_cgribex.c +++ b/src/stream_cgribex.c @@ -1833,8 +1833,11 @@ void cgribexDefGrid(int *isec1, int *isec2, double *fsec2, int *isec4, int gridI } default: { + static bool lwarn = true; ISEC1_Sec2Or3Flag = 0; - Warning("CGRIBEX library doesn't support %s grids, grid information will be lost!", gridNamePtr(gridtype)); + if (lwarn) + Warning("CGRIBEX library doesn't support %s grids, grid information will be lost!", gridNamePtr(gridtype)); + lwarn = false; break; } }