Skip to content

Commit 8300404

Browse files
authored
fix UCT HLLD when using DIMENSIONS<COMPONENTS (#363)
* fix UCT HLLD when using DIMENSIONS<COMPONENTS
1 parent 56189c9 commit 8300404

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/fluid/RiemannSolver/MHDsolvers/storeFlux.hpp

Lines changed: 4 additions & 4 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

@@ -201,7 +201,7 @@ KOKKOS_FORCEINLINE_FUNCTION void K_StoreHLLD( const int i, const int j, const in
201201
}
202202

203203
#if COMPONENTS > 1
204-
EXPAND( Et(k,j,i) = -st*(ar*vL[Xt] - al*vR[Xt])*scrh; ,
204+
D_EXPAND( Et(k,j,i) = -st*(ar*vL[Xt] - al*vR[Xt])*scrh; ,
205205
,
206206
Eb(k,j,i) = -sb*(ar*vL[Xb] - al*vR[Xb])*scrh; );
207207
#endif

0 commit comments

Comments
 (0)