Skip to content

Commit

Permalink
improve copyFrom
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSinn committed Feb 20, 2025
1 parent 05d0f54 commit 2f33b84
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Src/Boundary/AMReX_BndryRegister.H
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,12 @@ BndryRegisterT<MF>::copyFrom (const MF& src, int nghost,
int src_comp, int dest_comp, int num_comp,
const Periodicity& period)
{
for (OrientationIter face; face; ++face)
{
bndry[face()].copyFrom(src,nghost,src_comp,dest_comp,num_comp,period);
for (OrientationIter face; face; ++face) {
bndry[face()].multiFab().ParallelCopy_nowait(src,src_comp,dest_comp,num_comp,nghost,0,period);
}

for (OrientationIter face; face; ++face) {
bndry[face()].multiFab().ParallelCopy_finish();
}
return *this;
}
Expand Down

0 comments on commit 2f33b84

Please sign in to comment.