Skip to content

Commit

Permalink
Update Src/EB/AMReX_WriteEBSurface.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Weiqun Zhang <WeiqunZhang@lbl.gov>
  • Loading branch information
atmyers and WeiqunZhang authored Mar 8, 2024
1 parent 42bed54 commit b8a903d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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(),
my_flag.size()*sizeof(Real));
host_flag.nBytes());
Gpu::streamSynchronize();
my_flag_ptr = host_flag.get();
}
Expand Down

0 comments on commit b8a903d

Please sign in to comment.