Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 31, 2023
1 parent 5598a2f commit 2bb73f9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/HLLC.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ namespace quokka::Riemann
// Minoshima & Miyoshi, "A low-dissipation HLLD approximate Riemann solver
// for a very wide range of Mach numbers," JCP (2021).]
//
template <typename problem_t, int N_scalars, int N_mscalars, int fluxdim>
AMREX_FORCE_INLINE AMREX_GPU_DEVICE auto HLLC(quokka::HydroState<N_scalars, N_mscalars> const &sL, quokka::HydroState<N_scalars, N_mscalars> const &sR, const double gamma,
const double du, const double dw) -> quokka::valarray<double, fluxdim>
template <typename problem_t, int N_scalars, int N_mscalars, int fluxdim>
AMREX_FORCE_INLINE AMREX_GPU_DEVICE auto HLLC(quokka::HydroState<N_scalars, N_mscalars> const &sL, quokka::HydroState<N_scalars, N_mscalars> const &sR,
const double gamma, const double du, const double dw) -> quokka::valarray<double, fluxdim>
{
// compute Roe averages

Expand Down
18 changes: 9 additions & 9 deletions src/HydroState.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
namespace quokka
{
template <int Nall, int Nmass> struct HydroState {
double rho; // density
double u; // normal velocity component
double v; // transverse velocity component
double w; // 2nd transverse velocity component
double P; // pressure
double cs; // adiabatic sound speed
double E; // total energy density
double Eint; // internal energy density
std::array<double, Nall> scalar; // passive scalars
double rho; // density
double u; // normal velocity component
double v; // transverse velocity component
double w; // 2nd transverse velocity component
double P; // pressure
double cs; // adiabatic sound speed
double E; // total energy density
double Eint; // internal energy density
std::array<double, Nall> scalar; // passive scalars
amrex::GpuArray<double, Nmass> massScalar; // mass scalars
};

Expand Down

0 comments on commit 2bb73f9

Please sign in to comment.