Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang authored Mar 8, 2024
1 parent b8a903d commit 1e74a7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Src/EB/AMReX_WriteEBSurface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void WriteEBSurface (const BoxArray & ba, const DistributionMapping & dmap, cons
host_flag = std::make_unique<EBCellFlagFab>(my_flag.box(), my_flag.nComp(),
The_Pinned_Arena());
Gpu::dtoh_memcpy_async(host_flag->dataPtr(), my_flag.dataPtr(),
host_flag.nBytes());
host_flag->nBytes());
Gpu::streamSynchronize();
my_flag_ptr = host_flag.get();
}
Expand Down Expand Up @@ -108,7 +108,7 @@ void WriteEBSurface (const BoxArray & ba, const DistributionMapping & dmap, cons
host_flag = std::make_unique<EBCellFlagFab>(my_flag.box(), my_flag.nComp(),
The_Pinned_Arena());
Gpu::dtoh_memcpy_async(host_flag->dataPtr(), my_flag.dataPtr(),
my_flag.size()*sizeof(Real));
host_flag->nBytes());
Gpu::streamSynchronize();
my_flag_ptr = host_flag.get();
}
Expand Down

0 comments on commit 1e74a7b

Please sign in to comment.