|
Cholla 3.0.1-dev
Cholla - Massively parallel hydro on GPUs
|
Function definitions for the cuda HLLC Riemann solver. More...
#include <math.h>#include "../global/global.h"#include "../global/global_cuda.h"#include "../reconstruction/reconstruction.h"#include "../riemann_solvers/hllc_cuda.h"#include "../utils/gpu.hpp"#include "../utils/hydro_utilities.h"
Functions | |
| template<int reconstruction, uint direction> | |
| __global__ void | Calculate_HLLC_Fluxes_CUDA (Real const *dev_conserved, Real const *dev_bounds_L, Real const *dev_bounds_R, Real *dev_flux, int const nx, int const ny, int const nz, int const n_cells, Real const gamma, int const n_fields) |
| HLLC Riemann solver based on the version described in Toro (2006), Sec. 10.4. | |
| template __global__ void | Calculate_HLLC_Fluxes_CUDA< reconstruction::Kind::pcm, 0 > (Real const *dev_conserved, Real const *dev_bounds_L, Real const *dev_bounds_R, Real *dev_flux, int const nx, int const ny, int const nz, int const n_cells, Real const gamma, int const n_fields) |
| template __global__ void | Calculate_HLLC_Fluxes_CUDA< reconstruction::Kind::pcm, 1 > (Real const *dev_conserved, Real const *dev_bounds_L, Real const *dev_bounds_R, Real *dev_flux, int const nx, int const ny, int const nz, int const n_cells, Real const gamma, int const n_fields) |
| template __global__ void | Calculate_HLLC_Fluxes_CUDA< reconstruction::Kind::pcm, 2 > (Real const *dev_conserved, Real const *dev_bounds_L, Real const *dev_bounds_R, Real *dev_flux, int const nx, int const ny, int const nz, int const n_cells, Real const gamma, int const n_fields) |
| template __global__ void | Calculate_HLLC_Fluxes_CUDA< reconstruction::Kind::chosen, 0 > (Real const *dev_conserved, Real const *dev_bounds_L, Real const *dev_bounds_R, Real *dev_flux, int const nx, int const ny, int const nz, int const n_cells, Real const gamma, int const n_fields) |
| template __global__ void | Calculate_HLLC_Fluxes_CUDA< reconstruction::Kind::chosen, 1 > (Real const *dev_conserved, Real const *dev_bounds_L, Real const *dev_bounds_R, Real *dev_flux, int const nx, int const ny, int const nz, int const n_cells, Real const gamma, int const n_fields) |
| template __global__ void | Calculate_HLLC_Fluxes_CUDA< reconstruction::Kind::chosen, 2 > (Real const *dev_conserved, Real const *dev_bounds_L, Real const *dev_bounds_R, Real *dev_flux, int const nx, int const ny, int const nz, int const n_cells, Real const gamma, int const n_fields) |
Function definitions for the cuda HLLC Riemann solver.
| __global__ void Calculate_HLLC_Fluxes_CUDA | ( | Real const * | dev_conserved, |
| Real const * | dev_bounds_L, | ||
| Real const * | dev_bounds_R, | ||
| Real * | dev_flux, | ||
| int const | nx, | ||
| int const | ny, | ||
| int const | nz, | ||
| int const | n_cells, | ||
| Real const | gamma, | ||
| int const | n_fields | ||
| ) |
HLLC Riemann solver based on the version described in Toro (2006), Sec. 10.4.
| reconstruction | What kind of reconstruction to use, PCM, PLMC, etc. This argument should always be a member of the reconstruction::Kind enum, behaviour is undefined otherwise. |
| direction | The direction that the solve is taking place in. 0=X, 1=Y, 2=Z |
| [in] | dev_bounds_L | The interface states on the left side of the interface |
| [in] | dev_bounds_R | The interface states on the right side of the interface |
| [out] | dev_flux | The output flux |
| [in] | n_cells | Total number of cells |
| [in] | n_ghost | Number of ghost cells on each side |
| [in] | n_fields | The total number of fields |