diff options
author | 2020-01-28 13:44:55 -0800 | |
---|---|---|
committer | 2020-01-28 13:44:55 -0800 | |
commit | df1e86ba3b9a2affc518d96e0e2b0ec46a4b13eb (patch) | |
tree | 0e8f25cb211d7bedb60427ffdf53ec491f2dfcdc /Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms | |
parent | f808283fcafcc0884192b3d0191db58a4a88927a (diff) | |
download | WarpX-df1e86ba3b9a2affc518d96e0e2b0ec46a4b13eb.tar.gz WarpX-df1e86ba3b9a2affc518d96e0e2b0ec46a4b13eb.tar.zst WarpX-df1e86ba3b9a2affc518d96e0e2b0ec46a4b13eb.zip |
Fix typo in cylindrical operator
Diffstat (limited to 'Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms')
-rw-r--r-- | Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H index 2210e8835..2cb88fb79 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H @@ -26,12 +26,12 @@ struct CylindricalYeeAlgorithm { AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE static amrex::Real UpwardDrr_over_r( amrex::Array4<amrex::Real> const& F, - amrex::Real const r, int const dr, + amrex::Real const r, amrex::Real const dr, amrex::Real const* coefs_r, int const n_coefs_r, int const i, int const j, int const k, int const comp ) { amrex::Real inv_dr = coefs_r[0]; - return inv_dr*( (r+0.5*dr)*F(i+1,j,k,comp) - (r-0.5*dr)*F(i,j,k,comp) ); + return 1./r * inv_dr*( (r+0.5*dr)*F(i+1,j,k,comp) - (r-0.5*dr)*F(i,j,k,comp) ); }; AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE |