From 2bb73f9543687b151ce3d01b5a638cfedd40ccf8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 31 Jul 2023 14:08:58 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/HLLC.hpp | 6 +++--- src/HydroState.hpp | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/HLLC.hpp b/src/HLLC.hpp index 42b5dfcd2..dea20e578 100644 --- a/src/HLLC.hpp +++ b/src/HLLC.hpp @@ -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 -AMREX_FORCE_INLINE AMREX_GPU_DEVICE auto HLLC(quokka::HydroState const &sL, quokka::HydroState const &sR, const double gamma, - const double du, const double dw) -> quokka::valarray +template +AMREX_FORCE_INLINE AMREX_GPU_DEVICE auto HLLC(quokka::HydroState const &sL, quokka::HydroState const &sR, + const double gamma, const double du, const double dw) -> quokka::valarray { // compute Roe averages diff --git a/src/HydroState.hpp b/src/HydroState.hpp index 1518ac005..7efbcbfa9 100644 --- a/src/HydroState.hpp +++ b/src/HydroState.hpp @@ -6,15 +6,15 @@ namespace quokka { template 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 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 scalar; // passive scalars amrex::GpuArray massScalar; // mass scalars };