We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f72e41c commit f8a1f2fCopy full SHA for f8a1f2f
Source/Particles/PulsarParameters.H
@@ -169,7 +169,8 @@ namespace PulsarParm
169
amrex::Real const phi, amrex::Real & F_x)
170
{
171
F_x = F_r * std::sin(theta) * std::cos(phi)
172
- + F_theta * std::cos(theta) * std::cos(phi);
+ + F_theta * std::cos(theta) * std::cos(phi)
173
+ - F_phi * std::sin(phi);
174
}
175
176
AMREX_GPU_HOST_DEVICE AMREX_INLINE
@@ -179,7 +180,8 @@ namespace PulsarParm
179
180
amrex::Real const phi, amrex::Real & F_y)
181
182
F_y = F_r * std::sin(theta) * std::sin(phi)
- + F_theta * std::cos(theta) * std::sin(phi);
183
+ + F_theta * std::cos(theta) * std::sin(phi)
184
+ + F_phi * std::cos(phi);
185
186
187
0 commit comments