Skip to content

Commit 901b4fc

Browse files
committed
fix segfault when using UCT_HLL with dimensions <3
1 parent dc80444 commit 901b4fc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/fluid/RiemannSolver/MHDsolvers/storeFlux.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ KOKKOS_FORCEINLINE_FUNCTION void K_StoreHLL( const int i, const int j, const int
6262
real al = std::fmin(ZERO_F, sl);
6363
real scrh = ONE_F/(ar - al);
6464

65-
#if COMPONENTS > 1
66-
EXPAND( Et(k,j,i) = -st*(ar*vL[Xt] - al*vR[Xt])*scrh; ,
65+
#if DIMENSIONS > 1
66+
D_EXPAND( Et(k,j,i) = -st*(ar*vL[Xt] - al*vR[Xt])*scrh; ,
6767
,
6868
Eb(k,j,i) = -sb*(ar*vL[Xb] - al*vR[Xb])*scrh; );
6969
#endif

0 commit comments

Comments
 (0)