3d: handling non-contiguous memory
ICON uses this weird nproma
memory scheme. I.e. 3d variables are stored in a (nproma, nlev, nblks)
fortran array. As the number of cells is in general not a divider of nproma this leads to "dead" memory in the last block. Can this be handled with conduit?
Possible workarounds:
- Register the first
nblks-1
block as usual (respecting the right cell order) and handle the last block- use one "topology" per level and set the memory of the fields separately
- use one "topology" per cell and set the memory of the fields separately and set
stride=nproma