Skip to content

Commit bdcbd21

Browse files
committed
Ensure Bphi evolution in 2.5D is computed exactly as the evolution using full CT in 3D.
1 parent f1b96da commit bdcbd21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/fluid/calcRightHandSide.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ struct Fluid_CalcRHSFunctor {
363363
#if (GEOMETRY == SPHERICAL) && (COMPONENTS == 3)
364364
rhs[iMPHI] /= FABS(sinx2(j));
365365
if constexpr(Phys::mhd) {
366-
rhs[iBPHI] = -dt / (rt(i)*dx(j)) * (Flux(iBPHI, k, j+1, i) - Flux(iBPHI, k, j, i));
366+
rhs[iBPHI] = -dt / (x1(i)*dx(j)) * (Flux(iBPHI, k, j+1, i) - Flux(iBPHI, k, j, i));
367367
} // MHD
368368
#endif // GEOMETRY
369369
}

0 commit comments

Comments
 (0)