From 3f437498c4da4756381b2469240de4721401cb63 Mon Sep 17 00:00:00 2001 From: AJKhattak-NOAA Date: Fri, 30 Aug 2024 10:46:32 -0400 Subject: [PATCH] Update src/bmi_cfe.c Co-authored-by: Nels --- src/bmi_cfe.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bmi_cfe.c b/src/bmi_cfe.c index bf6517c..d69aaad 100644 --- a/src/bmi_cfe.c +++ b/src/bmi_cfe.c @@ -2143,6 +2143,9 @@ static int Set_value_at_indices (Bmi *self, const char *name, int * inds, int le size_t i; size_t offset; char * ptr; + // iterate over the source pointer, src, by itemsize byte chunks + // and set the destination pointer, dest, to the value in src + // based on the linear offset provided by inds[i] for (i=0, ptr=(char*)src; i