You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think we could consider dim1 and dim2 are not allowed to change during the simulation.
Note: the number of dimensions is not limited to 2, we could have 2 or more dimensions (dim3, dim4 and so on).
I don't know if synchronize would be the only needed operation.
Of course, we need to read and/or write at item in a loop ...
Maybe, we need to dump/restore the array so, at the end, the only right choice could be "choice 1" ("choice 2" is only a temporary view so we couldn't dump/restore).
Goal: to have or to "manipulate" a dynamic number of item variables
Choice 1: Array of
MeshVariableArrayRefT< ItemTypeT, DataTypeT>
We could have a N-dimensional array of
MeshVariableArrayRefT<>
Here, an example with a two-dimensional array.
Choice 2: a view
MeshVariableArrayViewT< ItemTypeT, DataTypeT>
Thanks to a memory area, we could create a kind of view on a Cell variable array.
Here an example, I don't know if we could use
NumArray
to pre-allocate data.The text was updated successfully, but these errors were encountered: