Open eschnett opened 3 years ago
When I write a local value to a file and read it back in, it is mis-interpreted as a global array.
Since local values is a N-values-to-1-variable write operation, the reader gets confused going from 1-variable-to-N-values if we are to return a single local value. The design decision was to expose them as a global array so readers can easily distinguish between local values as they are assembled. Typical examples are "per-rank" values that are independent (they could easily be a 1D global array): timing per rank, rankID itself, number of cells per rank, etc. The documentation has to be more clear, though. Thanks for bringing it up. Hope it helps.
When I write a local value to a file and read it back in, it is mis-interpreted as a global array.
This code demonstrates this:
The output is:
Note the variable called
local value
, which has the shape idGlobalArray
.