Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CalcMassFlux and CalculateMassAccretionRate ported to sparse packs #207

Closed
wants to merge 2 commits into from

Conversation

mari2895
Copy link
Collaborator

@mari2895 mari2895 commented Mar 14, 2024

PR Summary

CalcMassFlux and CalculateMassAccretionRate ported to sparse packs

PR Checklist

  • Adds a test for any bugs fixed. Adds tests for new features.
  • Format your changes by calling scripts/bash/format.sh.
  • Explain what you did.

const int b, const int k, const int j,
const int i) {
template <typename Geometry>
KOKKOS_INLINE_FUNCTION Real CalcMassFlux(MeshData<Real> *md, Geometry &geom, const int b,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not going to work on device. You still need to pass in the pack. But you probably don't need to pass in prho, pvel_lo or pvel_hi anymore, as you can simply use the types inside the pack.

@mari2895 mari2895 closed this Mar 19, 2024
@mari2895 mari2895 deleted the mg/calcflux_with_sparse_pack branch March 19, 2024 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants