diff options
Diffstat (limited to 'Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/YeeAlgorithm.H')
-rw-r--r-- | Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/YeeAlgorithm.H | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/YeeAlgorithm.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/YeeAlgorithm.H index 5a939ab7e..a68a81fa0 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/YeeAlgorithm.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/YeeAlgorithm.H @@ -32,9 +32,9 @@ struct YeeAlgorithm { /** /* Perform derivative along x on a cell-centered grid, from a nodal field `F`*/ AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE - static amrex::Real UpwardDx( + static amrex::Real UpwardDx ( amrex::Array4<amrex::Real> const& F, - amrex::Real const* coefs_x, int const n_coefs_x, + amrex::Real const * const coefs_x, int const n_coefs_x, int const i, int const j, int const k ) { amrex::Real const inv_dx = coefs_x[0]; @@ -44,9 +44,9 @@ struct YeeAlgorithm { /** /* Perform derivative along x on a nodal grid, from a cell-centered field `F`*/ AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE - static amrex::Real DownwardDx( + static amrex::Real DownwardDx ( amrex::Array4<amrex::Real> const& F, - amrex::Real const* coefs_x, int const n_coefs_x, + amrex::Real const * const coefs_x, int const n_coefs_x, int const i, int const j, int const k ) { amrex::Real const inv_dx = coefs_x[0]; @@ -56,9 +56,9 @@ struct YeeAlgorithm { /** /* Perform derivative along y on a cell-centered grid, from a nodal field `F`*/ AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE - static amrex::Real UpwardDy( + static amrex::Real UpwardDy ( amrex::Array4<amrex::Real> const& F, - amrex::Real const* coefs_y, int const n_coefs_y, + amrex::Real const * const coefs_y, int const n_coefs_y, int const i, int const j, int const k ) { #if defined WARPX_DIM_3D @@ -72,9 +72,9 @@ struct YeeAlgorithm { /** /* Perform derivative along y on a nodal grid, from a cell-centered field `F`*/ AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE - static amrex::Real DownwardDy( + static amrex::Real DownwardDy ( amrex::Array4<amrex::Real> const& F, - amrex::Real const* coefs_y, int const n_coefs_y, + amrex::Real const * const coefs_y, int const n_coefs_y, int const i, int const j, int const k ) { #if defined WARPX_DIM_3D @@ -88,9 +88,9 @@ struct YeeAlgorithm { /** /* 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 ) { amrex::Real const inv_dz = coefs_z[0]; @@ -104,9 +104,9 @@ struct YeeAlgorithm { /** /* 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 ) { amrex::Real const inv_dz = coefs_z[0]; |