We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d24f33 commit 310c15fCopy full SHA for 310c15f
1 file changed
include_testcases/ideal_MHD_far_dipole.h
@@ -33,7 +33,7 @@ inline REAL4 b_analytical(uint ix, uint iy, uint iz, REAL time) {
33
inline REAL4 b_dipole(REAL4 X, REAL4 M) {
34
REAL inorm = rsqrt(X.x*X.x + X.y*X.y + X.z*X.z);
35
REAL4 n = inorm * X;
36
- REAL4 H = (3 * n * (M * n) - M) * inorm * inorm * inorm;
+ REAL4 H = (3 * n * dot(M, n) - M) * inorm * inorm * inorm;
37
return H;
38
}
39
0 commit comments