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

Merge All Three PPM Kernels Into One #392

Draft
wants to merge 29 commits into
base: dev
Choose a base branch
from

Conversation

bcaddy
Copy link
Collaborator

@bcaddy bcaddy commented Apr 29, 2024

Summary

This merges the PPMC_CTU, PPMC_VL, and PPMP kernels into one single kernel.

PPMC/PPMP Merge

  • Minor refactors/reformatting throughout now that the PPM kernels have been merged
  • Removed PPMP kernel and associated files
  • Removed PPMC_CTU kernel
  • Moved the PPM characteristic tracing into a device host function
  • Added a switch in the PPMC function to switch between limiting in the primitive and characteristic variables
  • Renamed all PPMC stuff to PPM now that the kernel does both
  • Added PPMP support in PPMC (now PLM) tests
  • Remove PPM related functions that are no longer used
  • Add MHD support to PPMP

Accuracy & Stability

Similar to PR #391 I ran as suite of tests to verify stability and correctness. PPM is generally more oscillatory than PLM and the implosion test is not working either before or after this refactor; in fact it's not working on dev either.

mhd_ppm_tests.zip
hydro_ppm_tests.zip

Dependencies

Depends on PRs #371, #375, #377, and #391. Until those are merged this will look like it has a lot more changes than it does. A version without all those extra changes can be found here.

@bcaddy bcaddy marked this pull request as ready for review May 31, 2024 14:23
@bcaddy bcaddy changed the title Merge All Three PPM Kernels Into One & Add MHD Support to PLMP Merge All Three PPM Kernels Into One Jun 7, 2024
bcaddy added 27 commits June 25, 2024 10:09
Added a version of PCM that can be called as a device function from
within a Riemann solver
Refactored this function to put the limiter into its own function,
rename it to better reflect what it actually does, and move the
characteristic to primitive conversion outside the function
Sound speed plays a similar role to the other members of EigenVecs so
including it makes sense rather than passing around extra arguments
Doxygen for PCM, HLLD, and Reconstruction functions. Make all
`direction` tparams of type uint instead of a mix of int, size_t, and
uint. uint was chosen since direction should never be negative and
size_t is misleading in that it looks like it should be an array index.
These don't change much for most builds but they do allow higher order
reconstructions to be fused later if needed
This is the first step in combining the two PLM methods into one with a
switch for the limiting variables. Currently that switch exists but the
kernels haven't been modified to use it yet.
- Removed the PLMP kernel since PLMC can do both now
- Renamed PLMC_cuda to PLM_cuda since it can now do limiting in either
  set of variables
- Renamed plmc files to plm
- The PLM kernel has MHD support for either type of limiting
Moved the computation of the eigenvectors so it's not unnecerarily done in PLMP
Refactored this function to put the limiter into its own function,
rename it to better reflect what it actually does, and move the
characteristic to primitive conversion outside the function
Sound speed plays a similar role to the other members of EigenVecs so
including it makes sense rather than passing around extra arguments
I removed PPMC_CTU and added a call to the characteristic tracing
function to PPMC_VL and renamed it to PPMC_cuda
@bcaddy bcaddy marked this pull request as draft June 25, 2024 14:10
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.

1 participant