From 99a21bdd0f1a9c74ade031dd1850a265bf3a21a8 Mon Sep 17 00:00:00 2001 From: shahramn Date: Tue, 5 Mar 2024 13:19:31 +0000 Subject: [PATCH] Testing: headers only clone --- tests/grib_clone_headers_only.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/grib_clone_headers_only.cc b/tests/grib_clone_headers_only.cc index 6a029b1ca..f96048a15 100644 --- a/tests/grib_clone_headers_only.cc +++ b/tests/grib_clone_headers_only.cc @@ -21,7 +21,7 @@ int main(int argc, char* argv[]) int err = 0; long totalLength_src = 0, totalLength_dst = 0; - long edition = 0, isGridded = 0, bitmapPresent = 0; + long edition = 0, isGridded_src = 0, bitmapPresent = 0; long isConstant_src = 0, isConstant_dst = 0; long dataSectionLength_src = 0, dataSectionLength_dst = 0; size_t messageLength_src = 0, messageLength_dst = 0; @@ -41,8 +41,8 @@ int main(int argc, char* argv[]) assert(clone_handle); codes_get_long(source_handle, "isConstant", &isConstant_src); - codes_get_long(source_handle, "isGridded", &isGridded); - if (isGridded && !isConstant_src) { + codes_get_long(source_handle, "isGridded", &isGridded_src); + if (isGridded_src && !isConstant_src) { CODES_CHECK(codes_get_message(source_handle, &buffer, &messageLength_src), 0); CODES_CHECK(codes_get_message(clone_handle, &buffer, &messageLength_dst), 0);