Skip to content

Commit

Permalink
Workaround for CUDA <=11.6 in first order flux corrections (#77)
Browse files Browse the repository at this point in the history
* Workaround for CUDA 11.6 in first order flux corrections

* cpp-py-formatter

---------

Co-authored-by: Forrest Glines <[email protected]>
Co-authored-by: par-hermes <[email protected]>
  • Loading branch information
3 people authored Jul 24, 2023
1 parent f25cd01 commit 540deb9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/hydro/hydro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,13 @@ TaskStatus CalculateFluxes(std::shared_ptr<MeshData<Real>> &md) {
// (multiple calls) versus extra memory usage is.
template <Fluid fluid>
TaskStatus FirstOrderFluxCorrect(MeshData<Real> *u0_data, MeshData<Real> *u1_data,
const Real gam0, const Real gam1, const Real beta_dt) {
const Real gam0_, const Real gam1_,
const Real beta_dt_) {
// Work around for CUDA <=11.6
const Real gam0 = gam0_;
const Real gam1 = gam1_;
const Real beta_dt = beta_dt_;

auto pmb = u0_data->GetBlockData(0)->GetBlockPointer();
IndexRange ib = pmb->cellbounds.GetBoundsI(IndexDomain::interior);
IndexRange jb = pmb->cellbounds.GetBoundsJ(IndexDomain::interior);
Expand Down

0 comments on commit 540deb9

Please sign in to comment.