@@ -15,7 +15,7 @@ namespace user {
1515
1616 template <Dimension D>
1717 struct InitFields {
18- InitFields (real_t b0, real_t angle, real_t rho ) : b0 { b0 }, angle { angle }, rho { rho } {}
18+ InitFields (real_t b0, real_t angle) : b0 { b0 }, angle { angle } {}
1919
2020 Inline auto bx1 (const coord_t <D>& x_Ph) const -> real_t {
2121 return b0 * math::cos (angle);
@@ -26,23 +26,23 @@ namespace user {
2626 }
2727
2828 Inline auto ex1 (const coord_t <D>& x_Ph) const -> real_t {
29- return rho * x_Ph[0 ];
29+ return x_Ph[0 ];
3030 }
3131
3232 private:
33- const real_t b0, angle, rho ;
33+ const real_t b0, angle;
3434 };
3535
3636 template <Dimension D>
3737 struct MFields {
3838 MFields (real_t b0, real_t angle) : b0 { b0 }, angle { angle } {}
3939
4040 Inline auto bx1 (const coord_t <D>& x_Ph) const -> real_t {
41- return b0 * math::cos (angle);
41+ return - b0 * math::cos (angle);
4242 }
4343
4444 Inline auto bx2 (const coord_t <D>& x_Ph) const -> real_t {
45- return b0 * math::sin (angle);
45+ return - b0 * math::sin (angle);
4646 }
4747
4848 private:
@@ -52,7 +52,7 @@ namespace user {
5252 template <Dimension D>
5353 struct DriveFields : public InitFields <D> {
5454 DriveFields (real_t time, real_t b0, real_t angle, real_t omega, real_t r, real_t theta)
55- : InitFields<D> { b0, angle }
55+ : InitFields<D> { b0, angle}
5656 , time { time }
5757 , Omega { omega }
5858 , R { r }
@@ -95,7 +95,7 @@ namespace user {
9595 using arch::ProblemGenerator<S, M>::C;
9696 using arch::ProblemGenerator<S, M>::params;
9797
98- const real_t B0, angle, R, Omega, rho, theta, skin0, larmor0;
98+ const real_t B0, angle, R, Omega, theta, skin0, larmor0;
9999 InitFields<D> init_flds;
100100
101101 inline PGen (const SimulationParams& p, const Metadomain<S, M>& m)
@@ -108,13 +108,12 @@ namespace user {
108108 , theta { p.template get <real_t >(" setup.theta" , ZERO) }
109109 , skin0 { p.template get <real_t >(" scales.skindepth0" ) }
110110 , larmor0 { p.template get <real_t >(" scales.larmor0" ) }
111- , rho { TWO * B0 * Omega * SQR (skin0) / larmor0}
112- , init_flds { B0, angle, rho} {}
111+ , init_flds { B0, angle} {}
113112
114113 inline PGen () {}
115114
116115 auto AtmFields (real_t time) const -> DriveFields<D> {
117- return DriveFields<D> { time, B0, angle, Omega, R, theta};
116+ return DriveFields<D> { time, B0, angle, Omega, R, theta };
118117 }
119118
120119 auto MatchFields (real_t ) const -> MFields<D> {
0 commit comments