Open ztdepztdep opened 3 weeks ago
BoxArray ba(......);
int nprocs = ParallelDescriptor::NProcs();
int root = 0;
DistributionMapping dm(Vector<int>(nprocs,root));
MultiFab mf(ba, dm, ......);
Note that if MPI communication is not needed, FArrayBox
might also serve the purpose.
I am planning to run my program with 8 CPUs, and I need to create MultiFabs only in the root process. Could you please help me with this?