Skip to content

Commit

Permalink
hack: comment out some conservative_tp_primitive stuff
Browse files Browse the repository at this point in the history
this makes ROCm more happier
  • Loading branch information
zingale committed Jan 10, 2024
1 parent e1eecac commit 85694a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Source/hydro/advection_util.H
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,12 @@ void conservative_to_primitive(int i, int j, int k,

if (fill_passives) {
// Load passively advected quantities into q
for (int ipassive = 0; ipassive < npassive; ipassive++) {
int n = upassmap(ipassive);
int iq = qpassmap(ipassive);
constexpr_for<0, npassive>([&] (auto ipassive)
{
constexpr int n = upassmap(ipassive);
constexpr int iq = qpassmap(ipassive);
q(iq) = uin(i,j,k,n) * rhoinv;
}
});
}

// get gamc, p, T, c, csml using q state
Expand Down
4 changes: 4 additions & 0 deletions Source/reactions/Castro_react.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@ Castro::react_state(Real time, Real dt)
}
#endif

#if 0
// Convert the current state to primitive data.
// This state is U* = U_old + dt A where A = -div U + S_hydro.

Expand All @@ -665,6 +666,7 @@ Castro::react_state(Real time, Real dt)
Bx, By, Bz,
#endif
q_noreact, qaux_dummy, q_noreact.len() == NQ);
#endif

// dual energy formalism: in doing EOS calls in the burn,
// switch between e and (E - K) depending on (E - K) / E.
Expand Down Expand Up @@ -751,6 +753,7 @@ Castro::react_state(Real time, Real dt)

}

#if 0
// Convert the updated state (with the contribution from burning) to primitive data.

Array1D<Real, 0, NQ-1> q_new;
Expand Down Expand Up @@ -779,6 +782,7 @@ Castro::react_state(Real time, Real dt)
I(i,j,k,n) = 0.0_rt;
}
}
#endif

return {burn_failed};
});
Expand Down

0 comments on commit 85694a1

Please sign in to comment.