Skip to content

1D chare array within a 3D chare array #3361

Answered by epmikida
sshudler asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Sergei, it is possible to create a chare array from within another. Once created, you can simply broadcast the proxy of the 1D array to the chares of the 3D array. There is however one small caveat: currently arrays can only be created on PE 0. So if you make sure that the 3D chare array creates the 1D array from a chare on PE 0, then you can just do it the same way you'd do it as if you were creating the new array from the main chare.

However, if you want it to be more flexible/general, you can use the API for asynchronous array creation, which allows you to create an array from any PE. That API is described in the manual in section 2.3.4.2.7 (https://charm.readthedocs.io/en/latest/ch…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sshudler
Comment options

@epmikida
Comment options

Answer selected by sshudler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants