diff options
Diffstat (limited to 'Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/NodalAlgorithm.H')
-rw-r--r-- | Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/NodalAlgorithm.H | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/NodalAlgorithm.H b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/NodalAlgorithm.H index 46ed8b7c7..c040a7846 100644 --- a/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/NodalAlgorithm.H +++ b/Source/FieldSolver/FiniteDifferenceSolver/FiniteDifferenceAlgorithms/NodalAlgorithm.H @@ -39,7 +39,7 @@ struct NodalAlgorithm { amrex::Real const* coefs_x, int const n_coefs_x, int const i, int const j, int const k ) { - amrex::Real inv_dx = coefs_x[0]; + amrex::Real const inv_dx = coefs_x[0]; return 0.5*inv_dx*( F(i+1,j,k) - F(i-1,j,k) ); }; @@ -53,7 +53,7 @@ struct NodalAlgorithm { amrex::Real const* coefs_x, int const n_coefs_x, int const i, int const j, int const k ) { - amrex::Real inv_dx = coefs_x[0]; + amrex::Real const inv_dx = coefs_x[0]; return 0.5*inv_dx*( F(i+1,j,k) - F(i-1,j,k) ); }; @@ -68,7 +68,7 @@ struct NodalAlgorithm { int const i, int const j, int const k ) { # if defined WARPX_DIM_3D - amrex::Real inv_dy = coefs_y[0]; + amrex::Real const inv_dy = coefs_y[0]; return 0.5*inv_dy*( F(i,j+1,k) - F(i,j-1,k) ); # elif (defined WARPX_DIM_XZ) return 0; // 2D Cartesian: derivative along y is 0 @@ -86,7 +86,7 @@ struct NodalAlgorithm { int const i, int const j, int const k ) { # if defined WARPX_DIM_3D - amrex::Real inv_dy = coefs_y[0]; + amrex::Real const inv_dy = coefs_y[0]; return 0.5*inv_dy*( F(i,j+1,k) - F(i,j-1,k) ); # elif (defined WARPX_DIM_XZ) return 0; // 2D Cartesian: derivative along y is 0 @@ -103,7 +103,7 @@ struct NodalAlgorithm { amrex::Real const* coefs_z, int const n_coefs_z, int const i, int const j, int const k ) { - amrex::Real inv_dz = coefs_z[0]; + amrex::Real const inv_dz = coefs_z[0]; # if defined WARPX_DIM_3D return 0.5*inv_dz*( F(i,j,k+1) - F(i,j,k-1) ); # elif (defined WARPX_DIM_XZ) @@ -121,7 +121,7 @@ struct NodalAlgorithm { amrex::Real const* coefs_z, int const n_coefs_z, int const i, int const j, int const k ) { - amrex::Real inv_dz = coefs_z[0]; + amrex::Real const inv_dz = coefs_z[0]; # if defined WARPX_DIM_3D return 0.5*inv_dz*( F(i,j,k+1) - F(i,j,k-1) ); # elif (defined WARPX_DIM_XZ) |