Skip to content

How to store the data in std::map when looping over the FArrayBoxes in MultiFabs? #4214

Answered by WeiqunZhang
mafiami asked this question in Q&A
Discussion options

You must be logged in to vote

Maybe you can copy the data you need to a single process first. For example,

BoxArray ba(Box(IntVect(m_k0low[0],p0,m_k0low[2]),IntVect(m_k0hi[0],p0,m_k0hi[2]),v_lmdata.ixType());
DistributionMapping dm({0});
MultiFab single_box_mf(ba,dm,ncomp, 0);
single_box_mf.ParallelCopy(vlmdata, ....)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mafiami
Comment options

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