Skip to content

Commit

Permalink
fix dspaces DATATYPE translation in get()
Browse files Browse the repository at this point in the history
  • Loading branch information
bozhang-hpc committed Sep 11, 2024
1 parent 002675b commit 8f2312b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/dspaces-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1672,7 +1672,12 @@ static void fill_odsc(dspaces_client_t client, const char *var_name,
odsc->version = ver;
memset(odsc->owner, 0, sizeof(odsc->owner));
odsc->st = st;
odsc->size = elem_size;
if(elem_size < 0) {
odsc->type = elem_size;
odsc->size = type_to_size(elem_size);
} else {
odsc->size = elem_size;
}
odsc->bb.num_dims = ndim;

memset(odsc->bb.lb.c, 0, sizeof(uint64_t) * BBOX_MAX_NDIM);
Expand Down

0 comments on commit 8f2312b

Please sign in to comment.