Testing: headers only clone

This commit is contained in:
shahramn 2024-03-05 13:19:31 +00:00
parent 3fc47dcf77
commit 99a21bdd0f
1 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ int main(int argc, char* argv[])
int err = 0; int err = 0;
long totalLength_src = 0, totalLength_dst = 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 isConstant_src = 0, isConstant_dst = 0;
long dataSectionLength_src = 0, dataSectionLength_dst = 0; long dataSectionLength_src = 0, dataSectionLength_dst = 0;
size_t messageLength_src = 0, messageLength_dst = 0; size_t messageLength_src = 0, messageLength_dst = 0;
@ -41,8 +41,8 @@ int main(int argc, char* argv[])
assert(clone_handle); assert(clone_handle);
codes_get_long(source_handle, "isConstant", &isConstant_src); codes_get_long(source_handle, "isConstant", &isConstant_src);
codes_get_long(source_handle, "isGridded", &isGridded); codes_get_long(source_handle, "isGridded", &isGridded_src);
if (isGridded && !isConstant_src) { if (isGridded_src && !isConstant_src) {
CODES_CHECK(codes_get_message(source_handle, &buffer, &messageLength_src), 0); CODES_CHECK(codes_get_message(source_handle, &buffer, &messageLength_src), 0);
CODES_CHECK(codes_get_message(clone_handle, &buffer, &messageLength_dst), 0); CODES_CHECK(codes_get_message(clone_handle, &buffer, &messageLength_dst), 0);