Skip to content

Commit

Permalink
Fix GPU segfault introduced in #1066
Browse files Browse the repository at this point in the history
  • Loading branch information
marchdf committed Sep 17, 2024
1 parent 3a7b150 commit 34c7d99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion amr-wind/equation_systems/icns/icns_advection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void MacProjOp::enforce_inout_solvability(
a_umac) noexcept
{
auto& velocity = m_repo.get_field("velocity");
amrex::BCRec const* bc_type = velocity.bcrec_device().data();
amrex::BCRec const* bc_type = velocity.bcrec().data();
const amrex::Vector<amrex::Geometry>& geom = m_repo.mesh().Geom();

HydroUtils::enforceInOutSolvability(a_umac, bc_type, geom);
Expand Down
2 changes: 1 addition & 1 deletion amr-wind/projection/incflo_apply_nodal_projection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void amr_wind::nodal_projection::enforce_inout_solvability(
const Vector<Geometry>& geom,
const int num_levels)
{
BCRec const* bc_type = velocity.bcrec_device().data();
BCRec const* bc_type = velocity.bcrec().data();
Vector<Array<MultiFab*, AMREX_SPACEDIM>> vel_vec(num_levels);

for (int lev = 0; lev < num_levels; ++lev) {
Expand Down

0 comments on commit 34c7d99

Please sign in to comment.