Skip to content

Commit

Permalink
generalize the MPI communicator for computing the FFT so it works for…
Browse files Browse the repository at this point in the history
… MUI-coupled codes
  • Loading branch information
ajnonaka committed Aug 21, 2020
1 parent dc7df44 commit c03814b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src_analysis/StructFact.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,8 @@ void StructFact::ComputeFFT(const MultiFab& variables,
int Ndims[3] = { nbz, nby, nbx };
int n[3] = { domain.length(2), domain.length(1), domain.length(0)};
#endif
hacc::Distribution d(MPI_COMM_WORLD,n,Ndims,&rank_mapping[0]);
MPI_Comm comm = ParallelDescriptor::Communicator();
hacc::Distribution d(comm,n,Ndims,&rank_mapping[0]);
hacc::Dfft dfft(d);

if (verbosity > 0) {
Expand Down

0 comments on commit c03814b

Please sign in to comment.