Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
roelof-groenewald committed Sep 10, 2023
1 parent b5655ed commit f33857a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/FieldSolver/FiniteDifferenceSolver/HybridPICSolveE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ void FiniteDifferenceSolver::HybridPICSolveECylindrical (
Et(i, j, 0) = (enE_t - grad_Pe) / rho_val;

// Add resistivity only if E field value is used to update B
if (include_resistivity_term) Et(i, j, 0) += eta(rho_val) * (Jt(i, j, 0) - Jt_equilib(i, j, 0));
if (include_resistivity_term) Et(i, j, 0) += eta(rho_val) * (Jt(i, j, 0) - Jt_equilib(i, j, 0));
},

// Ez calculation
Expand All @@ -661,7 +661,7 @@ void FiniteDifferenceSolver::HybridPICSolveECylindrical (
Ez(i, j, k) = (enE_z - grad_Pe) / rho_val;

// Add resistivity only if E field value is used to update B
if (include_resistivity_term) Ez(i, j, k) += eta(rho_val) * (Jz(i, j, k) - - Jz_equilib(i, j, 0));
if (include_resistivity_term) Ez(i, j, k) += eta(rho_val) * (Jz(i, j, k) - Jz_equilib(i, j, 0));
}
);

Expand Down Expand Up @@ -922,7 +922,7 @@ void FiniteDifferenceSolver::HybridPICSolveECartesian (
Ez(i, j, k) = (enE_z - grad_Pe) / rho_val;

// Add resistivity only if E field value is used to update B
if (include_resistivity_term) Ez(i, j, k) += eta(rho_val) * (Jz(i, j, k) - Jz_equilib(i, j, k));
if (include_resistivity_term) Ez(i, j, k) += eta(rho_val) * (Jz(i, j, k) - Jz_equilib(i, j, k));
}
);

Expand Down

0 comments on commit f33857a

Please sign in to comment.