Skip to content

Commit

Permalink
Move GPU synchronize outside of level loop (#1157)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbkuhn authored Jul 25, 2024
1 parent 522c8d7 commit 8cce7a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amr-wind/utilities/MultiLevelVector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void MultiLevelVector::copy_to_field(Field& fld)
const int idx = (axis == 0) ? i : ((axis == 1) ? j : k);
farrs[nbx](i, j, k, 0) = d_ptr[idx];
});
amrex::Gpu::synchronize();
}
amrex::Gpu::synchronize();
}
} // namespace amr_wind

0 comments on commit 8cce7a6

Please sign in to comment.