Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgrote committed Jan 14, 2025
1 parent bb265a7 commit f2f34fc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,9 @@ public:

// k will be between k_im1 and k_i
amrex::ParticleReal const f_im1 = kdsigdk_im1/koT1_grid_im1;
amrex::ParticleReal const fi = kdsigdk_i/m_koT1_grid[i];
amrex::ParticleReal const x = (std::sqrt(f_im1*f_im1 + 2._prt*(fi - f_im1)*(random_number*sigma_total - sigma)/dk)
- f_im1)/(fi - f_im1);
amrex::ParticleReal const f_i = kdsigdk_i/m_koT1_grid[i];
amrex::ParticleReal const x = (std::sqrt(f_im1*f_im1 + 2._prt*(f_i - f_im1)*(random_number*sigma_total - sigma)/dk)
- f_im1)/(f_i - f_im1);
amrex::ParticleReal const result = x*dk + koT1_grid_im1;

return result;
Expand Down

0 comments on commit f2f34fc

Please sign in to comment.