Skip to content

Commit 250c641

Browse files
committed
fix unused variable warning with nvcc
1 parent 4c3072d commit 250c641

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/fluid/RiemannSolver/MHDsolvers/storeFlux.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ KOKKOS_FORCEINLINE_FUNCTION void K_StoreHLLD( const int i, const int j, const in
8787
const IdefixArray3D<real> &aR,
8888
const IdefixArray3D<real> &dL,
8989
const IdefixArray3D<real> &dR) {
90-
EXPAND( const int Xn = DIR+MX1; ,
91-
const int Xt = (DIR == IDIR ? MX2 : MX1); ,
92-
const int Xb = (DIR == KDIR ? MX2 : MX3); )
90+
EXPAND( const int Xn = DIR+MX1; ,
91+
const int Xt = (DIR == IDIR ? MX2 : MX1); ,
92+
[[maybe_unused]] const int Xb = (DIR == KDIR ? MX2 : MX3); )
9393
// Compute magnetic pressure
9494
[[maybe_unused]] real ptR, ptL;
9595

0 commit comments

Comments
 (0)