diff options
author | 2020-02-06 08:58:30 -0800 | |
---|---|---|
committer | 2020-02-06 09:03:29 -0800 | |
commit | 03b96216ae034bcf64312b8d8346a3f2c98e31b1 (patch) | |
tree | 04467bedf9d71971cc0f7adfb123b8fa21f50d2b /Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H | |
parent | de84bc4941c2466ac75f655876ba37332adf36e7 (diff) | |
download | WarpX-03b96216ae034bcf64312b8d8346a3f2c98e31b1.tar.gz WarpX-03b96216ae034bcf64312b8d8346a3f2c98e31b1.tar.zst WarpX-03b96216ae034bcf64312b8d8346a3f2c98e31b1.zip |
Make calculation of CKC coefficients for const friendly
Diffstat (limited to 'Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H')
-rw-r--r-- | Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H index f1d0eaa6e..28d159e08 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/CylindricalYeeAlgorithm.H @@ -31,10 +31,10 @@ struct CylindricalYeeAlgorithm { * and the differential operator is evaluated on a *cell-centered* grid. * The input parameter `r` is given at the cell-centered position */ AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE - static amrex::Real UpwardDrr_over_r( + static amrex::Real UpwardDrr_over_r ( amrex::Array4<amrex::Real> const& F, amrex::Real const r, amrex::Real const dr, - amrex::Real const* coefs_r, int const n_coefs_r, + amrex::Real const * const coefs_r, int const n_coefs_r, int const i, int const j, int const k, int const comp ) { amrex::Real const inv_dr = coefs_r[0]; @@ -46,10 +46,10 @@ struct CylindricalYeeAlgorithm { * and the differential operator is evaluated on a *nodal* grid. * The input parameter `r` is given at the cell-centered position */ AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE - static amrex::Real DownwardDrr_over_r( + static amrex::Real DownwardDrr_over_r ( amrex::Array4<amrex::Real> const& F, amrex::Real const r, amrex::Real const dr, - amrex::Real const* coefs_r, int const n_coefs_r, + amrex::Real const * const coefs_r, int const n_coefs_r, int const i, int const j, int const k, int const comp ) { amrex::Real const inv_dr = coefs_r[0]; @@ -59,9 +59,9 @@ struct CylindricalYeeAlgorithm { /** /* Perform derivative along r on a cell-centered grid, from a nodal field `F`*/ AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE - static amrex::Real UpwardDr( + static amrex::Real UpwardDr ( amrex::Array4<amrex::Real> const& F, - amrex::Real const* coefs_r, int const n_coefs_r, + amrex::Real const * const coefs_r, int const n_coefs_r, int const i, int const j, int const k, int const comp ) { amrex::Real const inv_dr = coefs_r[0]; @@ -71,9 +71,9 @@ struct CylindricalYeeAlgorithm { /** /* Perform derivative along r on a nodal grid, from a cell-centered field `F`*/ AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE - static amrex::Real DownwardDr( + static amrex::Real DownwardDr ( amrex::Array4<amrex::Real> const& F, - amrex::Real const* coefs_r, int const n_coefs_r, + amrex::Real const * const coefs_r, int const n_coefs_r, int const i, int const j, int const k, int const comp ) { amrex::Real const inv_dr = coefs_r[0]; @@ -83,9 +83,9 @@ struct CylindricalYeeAlgorithm { /** /* Perform derivative along z on a cell-centered grid, from a nodal field `F`*/ AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE - static amrex::Real UpwardDz( + static amrex::Real UpwardDz ( amrex::Array4<amrex::Real> const& F, - amrex::Real const* coefs_z, int const n_coefs_z, + amrex::Real const * const coefs_z, int const n_coefs_z, int const i, int const j, int const k, int const comp ) { amrex::Real const inv_dz = coefs_z[0]; @@ -95,9 +95,9 @@ struct CylindricalYeeAlgorithm { /** /* Perform derivative along z on a nodal grid, from a cell-centered field `F`*/ AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE - static amrex::Real DownwardDz( + static amrex::Real DownwardDz ( amrex::Array4<amrex::Real> const& F, - amrex::Real const* coefs_z, int const n_coefs_z, + amrex::Real const * const coefs_z, int const n_coefs_z, int const i, int const j, int const k, int const comp ) { amrex::Real const inv_dz = coefs_z[0]; |