Skip to content

How to handle multiple domains per MPI process #1105

Answered by cyrush
benjaminjeliot asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Jim,

There is still one publish per MPI task, each MPI Task presents a conduit tree with children that represent the domains.

Here is one way to create such a tree:

Node n;
Node & domain_0 = n.append();
// setup domain_0
Node & domain_1 = n.append();
// setup domain_1

For each domain, you can provide the domain id under state/domain_id:

domain_0["state/domain_id"] = 0;

Here are some test snippets that demo MPI use:

create_3d_example_dataset(data,32,par_rank,par_size);

create_3d_example_dataset(Node &data,

Hope this helps, and I wil…

Replies: 1 comment 2 replies

Comment options

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

@cyrush
Comment options

Answer selected by benjaminjeliot
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